Re: NumberForm spaces and commas in v7.0.1
- To: mathgroup at smc.vnet.net
- Subject: [mg98893] Re: NumberForm spaces and commas in v7.0.1
- From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
- Date: Mon, 20 Apr 2009 19:15:36 -0400 (EDT)
- References: <gshfup$c2g$1@smc.vnet.net>
I actually prefer Mathematica's new formatting, but if you like ye
olde version you could try putting SetOptions[NumberForm,
NumberSeparator -> {",", ","}] in an kernel/init.m file in the
Autoload directory located at $UserBaseDirectory.
Cheers -- Sjoerd
On Apr 20, 11:40 am, underante <peekadi... at lineone.net> wrote:
> hello,
>
> in Mathematica v4 and 5.2 to print long numbers separated by commas in bl=
ocks
> of 3, i used to use something like this for example:
>
> NumberForm[N[Pi, 10], DigitBlock -> 3]
>
> which gave:
>
> 3.141,592,654
>
> i.e. commas to the right of the decimal point. but in Mathematica v7.0.1 =
the
> same statement generates number blocks separated by spaces, i.e:
>
> 3.141 592 654
>
> i can recover the commas by using something like:
>
> NumberForm[N[Pi, 10], DigitBlock -> 3, NumberSeparator -> ","]
>
> but does anyone know if there is a quick fix to get the old style
> commas back without having to change all my old programs in this way?
>
> thankyou,
>
> f.c.