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

Home » Public Forums » archive » Re: Round a number
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Round a number [message #82964] Tue, 29 January 2013 04:19
Yngvar Larsen is currently offline  Yngvar Larsen
Messages: 134
Registered: January 2010
Senior Member
On Tuesday, 29 January 2013 11:51:43 UTC+1, dave poreh wrote:
> Hi folks,
>
> I want to round a number like: 1.638 to 1.64. which command would do this Please?

a = 1.638
b = round(a*100.0)/100.0
print, a, b

--
Yngvar
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Round a number
Next Topic: Re: Help with SVDC procedure

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

Current Time: Wed Oct 08 15:14:53 PDT 2025

Total time taken to generate the page: 0.00482 seconds