D dougc Member Licensed User Longtime User Feb 4, 2013 #1 the below code snippit is returning a string (which is really a number, I made it a string so I could parse it) in scientific notation totalHours = 25920 B4X: totalHours = totalDays * 24 totalMinutes = totalHours * 60 totalseconds = totalMinutes * 60 Log("totalseconds (1) = " & totalSeconds) below is my log totalseconds (1) = 9.3312E7 Click to expand... is there any way to get the number/string back not in scientific notation? While it is a big number it only has 8 digits. thanks dougc
the below code snippit is returning a string (which is really a number, I made it a string so I could parse it) in scientific notation totalHours = 25920 B4X: totalHours = totalDays * 24 totalMinutes = totalHours * 60 totalseconds = totalMinutes * 60 Log("totalseconds (1) = " & totalSeconds) below is my log totalseconds (1) = 9.3312E7 Click to expand... is there any way to get the number/string back not in scientific notation? While it is a big number it only has 8 digits. thanks dougc
M Mahares Expert Licensed User Longtime User Feb 4, 2013 #2 You can use either: B4X: Msgbox("totalseconds (1) = " & NumberFormat(9.3312E7,1,0),"") Msgbox("totalseconds (1) = " & NumberFormat2(9.3312E7,1,0,0,False),"") Upvote 0
You can use either: B4X: Msgbox("totalseconds (1) = " & NumberFormat(9.3312E7,1,0),"") Msgbox("totalseconds (1) = " & NumberFormat2(9.3312E7,1,0,0,False),"")
D dougc Member Licensed User Longtime User Feb 4, 2013 #3 thank you the 2nd example worked perfectly dougc Upvote 0