Hi DIAdemon,
Sorry, but you found a bug which should be fixed latest in the next main release. I've created a small function which is usable as workaround.
function myEStrFormat(dVal, sFormat)
Dim sNum, iExp
sNum = str(dVal, "d.ddddddddddddddde")
iExp = Right(sNum, len(sNum)-instr(sNum, "E")+1)
sNum = Left(sNum, instr(sNum, "E")-1)
sNum = str(val(sNum), sFormat)
myEStrFormat = sNum & "<>" & iExp
end function
dVal is the value like 12.345678
sFormat is the format like "d.dddd" (without e)
Example:
sNewVal = myEStrFormat(12.345678, "d.dddd")
Than sNewVal is 1.2346E+1
I hope this will help you and greetings
Walter