converting number

converting number

Anonymous
Not applicable
754 Views
2 Replies
Message 1 of 3

converting number

Anonymous
Not applicable

hi, Dear

How to convert this number to simpler form 5.975308620246914E+016.

thanks

0 Likes
755 Views
2 Replies
Replies (2)
Message 2 of 3

dbroad
Mentor
Mentor

What do you want it to look like? (A large decimal number, a number with commas, a number with periods as separators, a number with fewer decimal places, feet and inches...........

Architect, Registered NC, VA, SC, & GA.
0 Likes
Message 3 of 3

stevor
Collaborator
Collaborator

5.975308620246914E+016. to a simpler number.

It would be simpler if you gave the entire description.

If it is a teest string, assigned to a variable,

in this example, 'rns, then to function 'rtos would:

  (setq rns "5.975308620246914E+016")
  (setq RN (read rns))
  (Princ "\n Read String: ") (prin1 RN)
  (setq pns (rtos rn 2 2))
  (Princ "\n Real-To-String: ") (prin1  pns )

S
0 Likes