how show seconds without exponent notation | Sololearn: Learn to code for FREE!

+2

how show seconds without exponent notation

https://code.sololearn.com/cN51bvxoxtyC/?ref=app the second floating point value

9/19/2020 2:39:42 PM

Kiwwi#

2 Answers

New Answer

+5

Try using either of these options: (decimal) diff.TotalSeconds //or diff.TotalSeconds.ToString( "0." + new string('#', 339) ) NOTE: The 339 indicates the max number of digits. There are other options as presented in these responses which are worth reviewing: https://stackoverflow.com/questions/1546113/double-to-string-conversion-without-scientific-notation

+2

David Carroll you rock!