[M3devel] Percent to REAL?
Martin Bishop
martinbishop at bellsouth.net
Fri Jan 16 03:37:28 CET 2009
Martin Bishop wrote:
> I'm feeling silly, but I need to convert a percentage (stored as an
> INTEGER) into a REAL, so I tried FLOAT(num) / 100.0 but that doesn't
> work. I tried using FLOAT(num DIV 100) but that doesn't work either. I
> also tried FLOAT(num MOD 100) just to try everything, and that didn't
> work either.
>
> How can I convert a percentage into a REAL? For example, 70% -> 0.70
>
Disregard that, I knew I was feeling silly, FLOAT(num) / 100.0 DOES work.
More information about the M3devel
mailing list