man trunc

math.h

Eljon Curry

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mervine,
Keith
Sent: Tuesday, February 10, 2004 11:46 AM
To: [email protected]
Subject: FLoats


Greetings,
        How do I get a float that if the answer is a whole number to not
print .0 at the end of it.

Example if the result is 4.5 print 4.5 but if the result is 4.0 print 4

Thanks in Advance!

-T

-- 
ROM mailing list
[email protected]
http://www.rom.org/cgi-bin/mailman/listinfo/rom



Reply via email to