MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: NumberForm spaces and commas in v7.0.1

  • To: mathgroup at smc.vnet.net
  • Subject: [mg98899] Re: NumberForm spaces and commas in v7.0.1
  • From: dh <dh at metrohm.com>
  • Date: Tue, 21 Apr 2009 05:09:40 -0400 (EDT)
  • References: <gshfup$c2g$1@smc.vnet.net> <gsiv99$933$1@smc.vnet.net>


Hi,

sorry I copied the wrong example. It should read:

NumberForm[10^5 N[Pi, 15], DigitBlock -> 3, NumberSeparator -> ","]

You can find this in the manual under: NumberSeparator

Daniel



dh wrote:

> Hi,

> 

> in version 7 the default NumberSeparator is "," before the decimal point 

> 

> and "space" after it. If you want "," everywhere e.g.:

> 

> NumberForm[10^5 N[Pi, 15], DigitBlock -> 3]

> 

> Look it up in the manual.

> 

> Daniel

> 

> 

> 

> underante wrote:

> 

>> hello,

> 

> 

>> in Mathematica v4 and 5.2 to print long numbers separated by commas in blocks

> 

>> 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.

> 

> 

> 

> 




  • Prev by Date: Re: Mathematica for gifted elementary school children
  • Next by Date: Re: Alignment of Graphics Within Expressions
  • Previous by thread: Re: NumberForm spaces and commas in v7.0.1
  • Next by thread: recognition typesetted mathematical text?