This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BQ27441-G1: CC Gain register writing issue

Part Number: BQ27441-G1
Other Parts Discussed in Thread: BQ27742-G1

I want to write a float value into the CC Gain register but as it is a 4 bytes float value so i have to convert it to the char array because i am using the i2c interface with my microcontroller.

i have tried the type conversion method and union method also but it is not writing the exact float value which I want to write to CC Gain register.

Can somebody help me out to do the conversion.