interfacing LSM303DLH

Hi,
I am a newbie, this is my first post. I am working on a Arduino Uno with a Pololu LSM303DLH 3D Compass and accelerometer; in order to read the sensor I use this library GitHub - ryantm/LSM303DLH: This library is no longer recommended. It has been superseded by https://github.com/pololu/lsm303-arduino but it returns raw data.
How can I convert accelerometer raw data into mg (or g) ?

Thanks,
Daddym85

have you checked the datasheet - http://www.pololu.com/file/download/LSM303DLH.pdf?file_id=0J433 - ?

it states that depening on some flags the full scale is either 2,4 or 8 G. So you need to map the raw values 0..n to 0..4 for example.