• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Formatter question

 
Gabriela Rios
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In K & B at the end of chapter 6


Output

> (123)<
>012,345<
>+12345 <
>false + -123<

I don't understand why >012,345<. Could you tell me why the comma is in that position. By Default?? If I don't specified the precision. it uses 3?
 
Daniel Del Moral
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a comma for grouping thousands, not decimals. That's might be confusing you. It's this kind of comma:

123,456.78 or
1,234,567.89
[ May 25, 2008: Message edited by: Daniel Del Moral ]
 
Gabriela Rios
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh. You're right. Thank you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic