Let's say I have a double precision value
a = 1.5838619160273860E-021
Is there a way to create a string b
b = '1.5838619160273860E-021'
Note the index has three digits here E-021
instead of E-21
. I know format(int, '0.16f')
can control the decimal place, but no idea how to manipulate the index.
Any input will be appreciated