Message Boards Message Boards

2 Replies
0 Total Likes
View groups...
Share this post:

How to Set Location of Decimal Point in NumberForm or Scientific Form

Posted 10 years ago

If I have a floating point value like -2.7644110^(-8) and I want to output this as -0.027644110^(-6) is there a way to do this with NumberForm or ScientificForm? It seems like all you can do with those built-in functions is set the number of digits after the decimal point but I need to display values normalized to a specific scaling factor.


POSTED BY: Bob Stephens
2 Replies
Posted 10 years ago

Yes, the ExponentFunction used as shown above does exactly what I want - thanks!

POSTED BY: Bob Stephens

Try ExponentFunction, for example

ScientificForm[-2.764411*^-8, ExponentFunction -> (-6 &)]
POSTED BY: Ilian Gachevski
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract