+ 2

how show seconds without exponent notation

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

19th Sep 2020, 2:39 PM
Kiwwi#
Kiwwi# - avatar
2 Respuestas
+ 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
19th Sep 2020, 7:19 PM
David Carroll
David Carroll - avatar
+ 2
David Carroll you rock!
19th Sep 2020, 8:21 PM
Kiwwi#
Kiwwi# - avatar