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

Home » Public Forums » archive » Re: How to plot multiple charts and ho to round float to specific precision?
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: How to plot multiple charts and ho to round float to specific precision? [message #44853] Wed, 27 July 2005 08:18 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Ben Panter wrote:
> liko2@o2.pl wrote:
>> 2. How to round float eg. 23,45654 to 23,46?
>
> I think you mean 23.45654 to 23.46?

Totally off-topic with apologies in advance, but I'm feeling a bit slow today...

I believe in some European countries the decimal point character is "," I think the 1000's
separator is "." as well (but not sure). So 20.364,475936 in these cases is equivalent to the US
20,364.475936. From Wikipedia:

------------
In France the dot was already in use in printing to make Roman numerals more readable, so the comma
was chosen. Many other countries also chose the comma is used to mark the decimal units position. It
has been made standard by the ISO for international blueprints.

English-speaking countries, however, took the comma to separate sequences of three digits. In the
US, a period (.), which is called a stop in some other such countries, was the standard.

Examples of use:

* In France, the Netherlands, and much of Latin Europe: 1 234 567,89
* In Germany, Romania and much of Europe: 1 234 567,89 or 1.234.567,89 (in handwriting you may
also come across 1�234�567,89)
* In Switzerland (mainly German-speaking Switzerland): 1'234'567,89
* In the United Kingdom and United States: 1,234,567.89 or 1,234,567�89; the latter is more
commonly found in older, and especially handwritten, documents nowadays; many UK schools now teach
the SI style, which has become official in Australia.
* SI style: 1 234 567.89 (dot countries) or 1 234 567,89 (comma countries)

Dot countries

Countries where a dot is used to mark the radix point include:

Australia, Botswana, Canada (English-speaking), China, Costa Rica, Dominican Republic, El
Salvador, Guatemala, Honduras, Hong Kong of the People's Republic of China, India, Ireland, Israel,
Japan, Korea (both North and South), Malaysia, Mexico, Nicaragua, New Zealand, Panama, Philippines,
Saudi Arabia, Singapore, Taiwan, Thailand, United Kingdom, United States (including insular area of
Puerto Rico),

Comma countries

Countries where a comma is used to mark the radix point include:

Albania, Andorra, Argentina, Austria, Belarus, Belgium, Bolivia, Brazil, Bulgaria, Canada
(French-speaking), Croatia, Cuba, Chile, Colombia, Czech Republic, Denmark, Ecuador, Estonia,
Faroes, Finland, France, Germany, Greece, Greenland, Hungary, Indonesia, Iceland, Italy, Latvia,
Lithuania, Luxembourg, Macedonia, Moldova, Netherlands, Norway, Paraguay, Peru, Poland, Portugal,
Romania, Russia, Serbia, Slovakia, Slovenia, Spain, South Africa, Sweden, Switzerland, Ukraine,
Uruguay, Venezuela, Zimbabwe
---------------

Looks like the Canadians have a hard time of it. :o)

That's gotta be hard to get used to. I still have trouble with dates here in the US when the day is
< 12. In Australia 04/07/2005 is the 4th of July. In the US it's the 7th of April.

Anyway..... The world is a funny (peculiar) place.

cheers,

paulv

--
Paul van Delst
CIMSS @ NOAA/NCEP/EMC
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Text widget error checking
Next Topic: Re: Text widget error checking

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

Current Time: Wed Oct 08 19:42:26 PDT 2025

Total time taken to generate the page: 0.00465 seconds