[VPM] changing a real to an integer

Carl B. Constantine cconstan at csc.UVic.CA
Mon Jan 19 16:44:07 CST 2004


If I have a real nubmer like: -0.0800000000017462 and I want to multiply
by 1000 and then cut the excess fraction off the end so that all I'm
left with is -80 instead of -80.0000000017462, how would I do that?

Thanks.

-- 
Carl B. Constantine         University of Victoria
Programmer Analyst          http://www.csc.uvic.ca
UNIX System Administrator   Victoria, BC, Canada
cconstan at csc.uvic.ca        ELW A248, 721-8766



More information about the Victoria-pm mailing list