Author Topic: Thousands Place Seperator And Decimal Points  (Read 2451 times)

0 Members and 1 Guest are viewing this topic.

Offline Frederick J. Harris

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 942
    • Frederick J. Harris
Thousands Place Seperator And Decimal Points
« on: March 10, 2016, 03:05:37 PM »
How do you seperate thousands places in large numbers in France and elsewhere in Europe Patrice?  In the US we use commas ',' to seperate thousands places, an '.' to seperate decimals, that is....

123,456,789.25

I seem to recall in Europe that's reversed?

Offline Josť Roca

  • Administrator
  • Hero Member
  • *****
  • Posts: 2528
    • Josť Roca Software
Re: Thousands Place Seperator And Decimal Points
« Reply #1 on: March 10, 2016, 03:58:49 PM »
Yes, it's reversed:

123.456.789,25

although French and others sometimes use an space:

123 456 789,25

Offline Frederick J. Harris

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 942
    • Frederick J. Harris
Re: Thousands Place Seperator And Decimal Points
« Reply #2 on: March 10, 2016, 08:24:31 PM »
Thanks Jose!  OK.  Good!  That's what I thought. 

Does PowerBASIC have - what I think is called 'locale' support?  In other words, when you do this in your PowerBASIC version installed in Europe....

Local pi As Double
pi=3.14159
Con.Print pi

Do you get this...

3,14159

or this...

3.14159

??

Offline Josť Roca

  • Administrator
  • Hero Member
  • *****
  • Posts: 2528
    • Josť Roca Software
Re: Thousands Place Seperator And Decimal Points
« Reply #3 on: March 10, 2016, 09:30:33 PM »
This

3.14159


Offline Patrice Terrier

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2003
    • www.zapsolution.com
Re: Thousands Place Seperator And Decimal Points
« Reply #4 on: March 10, 2016, 10:30:34 PM »
Yes, Josť's answer for french is perfect.  :)

...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com