Message Boards Message Boards

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

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

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

thanks

POSTED BY: Bob Stephens
2 Replies

Try ExponentFunction, for example

ScientificForm[-2.764411*^-8, ExponentFunction -> (-6 &)]
POSTED BY: Ilian Gachevski
Posted 9 years ago

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

POSTED BY: Bob Stephens
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract