How can one format a numeric value using function FSTR$(Number,String) to show in exponential format for example: 0,00234 → 2,34E-03.
Hi Jim,
welcome to our community
!
I’d rather use the CStr$ function for this purpose.
CStr$(0.00234, "%.2E" )
does the trick for me.
Hi Jochen,
Thanks for the quick reply. I used what you say and it does the trick, however it cannot take the proper decimal separator symbol that I am using for the number format like the FStr$ does. It only works with a point (.).
Jim
If you’re always using “,” instead of “.”, you could use
ReplaceStr$(CStr$(0.00234,"%.2E"),".",",")