RE: Decimal point in printed numbers
- To: mathgroup at smc.vnet.net
- Subject: [mg41596] RE: [mg41577] Decimal point in printed numbers
- From: "David Park" <djmp at earthlink.net>
- Date: Wed, 28 May 2003 04:57:28 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Jan, Use NumberForm[N[x],...] and its options to control the print format of numbers. David Park djmp at earthlink.net http://home.earthlink.net/~djmp/ From: Jan Rychter [mailto:jan at rychter.com] To: mathgroup at smc.vnet.net I'm generating labels for axes in a plot. If I numericalize (N[]) them, I get a decimal point after each number, even if there is no fractional part. If I don't I risk getting rationals (1/2). What is the preferred solution? I guess I could either convert everything to reals (using N[]) and change the printed representation (but I couldn't find out how to get rid of the decimal point reading the manuals), or try to stick with precise numbers and only convert if fractions result. Is there a way to do that? --J.