PLUS+1 Software > Code sharing

Converting 32bit float to integer, and vise versa

(1/1)

jashom1:
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.

Navigation

[0] Message Index

Go to full version