Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Number formatting
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dan Sugalski  
View profile  
 More options Jan 19 2004, 4:00 pm
Newsgroups: perl.perl6.internals
From: d...@sidhe.org (Dan Sugalski)
Date: Mon, 19 Jan 2004 15:57:27 -0500
Local: Mon, Jan 19 2004 3:57 pm
Subject: Number formatting
Okay, plan is this:

1) We will adopt ICU's formatting template for numeric formats
2) We'll roll our own to start with.

#1 makes sense--we have to use something, and since we're linking in
ICU but not postgres it makes sense to use the ICU format. I've some
qualms about it since the numeric formatting seems a bit sub-par (no
star or user-specified fill characters, no CR/DB or parens for
alternate positive/negative notation) but it'll do, I think. At least
it lets us skip nasty locale things.

#2 is in part because we're not linking in ICU at the moment (it
doesn't even build on latest-sarge debian installs) and in part
because I don't want to yank in all of ICU just to be able to turn
45523.4 into "  $45,523.40".

The op will be:

    format Sx, [INP]y, [SP]z

The initial cut will likely not be at all locale-aware, but the docs
will promise that it is.
--
                                         Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
d...@sidhe.org                         have teddy bears and even
                                       teddy bears get drunk


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.