Decimal point in printed numbers
- To: mathgroup at smc.vnet.net
- Subject: [mg41577] Decimal point in printed numbers
- From: Jan Rychter <jan at rychter.com>
- Date: Tue, 27 May 2003 05:25:27 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
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.
- Follow-Ups:
- Re: Decimal point in printed numbers
- From: Tomas Garza <tgarza01@prodigy.net.mx>
- Re: Decimal point in printed numbers