Problem with unsigned divide
Posted: Tue Apr 06, 2021 9:04 am
Hi All,
I am having an problem with a unsigned divide I am not sure what I am missing or doing wrong
Variable Raw is a unsigned int and factor is also an unsigned int value 32768 by dividing it to get the Resistance send from the MAX31865 SPI as per datasheet my result is always 0.0 ,Resistance is a float variable ,
when I just use a value of 32 for the factor then I get a result it is somehow connected to the 32768 number ,
How can I solve this or how can I use the type conversion component to do this
Divide by 32 give a correct result but using the factor of 32768 does not work what Am I doing wrong
I am having an problem with a unsigned divide I am not sure what I am missing or doing wrong
Variable Raw is a unsigned int and factor is also an unsigned int value 32768 by dividing it to get the Resistance send from the MAX31865 SPI as per datasheet my result is always 0.0 ,Resistance is a float variable ,
when I just use a value of 32 for the factor then I get a result it is somehow connected to the 32768 number ,
How can I solve this or how can I use the type conversion component to do this
Divide by 32 give a correct result but using the factor of 32768 does not work what Am I doing wrong