comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Controlling number of decimal places
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Controlling number of decimal places [message #40207] Tue, 27 July 2004 15:38 Go to previous message
i-kant is currently offline  i-kant
Messages: 14
Registered: June 2004
Junior Member
Say I have a DOUBLE variable that holds 200.23234 for example. I want
to output this number to a text file as a number rounded to two
decimal places. In other words, I want to output to a text file
"200.23".

How do I do this? I've looked into the ROUND function but only rounds
to the nearest integer.


Thanks for any help!



Edwin
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Programatically create structure
Next Topic: Displaying fluid flow in porous medium

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 15:11:51 PDT 2025

Total time taken to generate the page: 0.96082 seconds