You could always try adding .999 to the value before sprintf()ing it...

-----Original Message-----
From: Ned Cunningham [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 11:32 AM
To: '[EMAIL PROTECTED]'
Subject: printf question


Hi,

Can anyone tell me how to print the following data so that it rounds up even
though it shouldn't????


$data = "3.424";

Printf WRFILE ("%11.2f", $data);

My results are 

3.42

I need it to round up even if it is only .001 ?????

TIA

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to