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

Home » Public Forums » archive » floats from strings... duh!
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Floats [message #47854 is a reply to message #4362] Wed, 08 March 2006 15:59 Go to previous messageGo to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
Paul Van Delst wrote:
> Sheldon wrote:
>>
>> Here is a silly question: Can I define a float array and control how
>> many decimal places are kept? For example, I want all values to only
>> have an accuracy to the nearest 100th (20.15 and not 20.154983445).
>> Kind of like in printing, you know, the f5.2 print definition, but only
>> for variables and arrrays.
>
> May I ask why? Usually this sort of thing is required for printing, but
> not for regular old storage of numbers.

Currency?

--
Mark Hadfield "Kei puwaha te tai nei, Hoea tahi tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: matching 2 grids
Next Topic: Solaris 10

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

Current Time: Fri Oct 10 10:00:49 PDT 2025

Total time taken to generate the page: 0.64238 seconds