I have a local variable "number1".
(setq number1 (getreal "\n\nGet Number: "))
I'd like to convert it to a string with 5 decimal digits (i.e. xxx.ddddd and xxx can be any number, no digit places limit)
The string I'd like to get is these formats:
"XXX.00000", if the input number is XXX. (In this case the input is an integer.)
"XXX.d0000", if the input number is XXX.d
"XXX.dd000", if the input number is XXX.dd
"XXX.ddd00", if the input number is XXX.ddd
"XXX.dddd0", if the input number is XXX.dddd
"XXX.ddddd", if the input number is XXX.ddddd
Thanks in advance.