PLUS+1 User Forum

PLUS+1 Software => Code sharing => Topic started by: jashom1 on October 25, 2011, 03:15:56 AM

Title: Converting 32bit float to integer, and vise versa
Post by: jashom1 on October 25, 2011, 03:15:56 AM
Hi,

I am trying to convert 32 bit float into a 32 bit signed integer, and back again.  I have managed to get the connversion working for float -> integer, now just working on the routine to convert it back.

I have rounded the number to 3 decimal places (multiplied the float by 1000)

Has anyone done this before?  Surely there is an easier conversion block out there!

Thanks,

John.