3 ms·
I dunno, to me it makes perfect sense that you would need to convert it to a duration. time.Second * time.Duration(userInputInt)
by barrongineer 8y ago
I dunno, to me it makes perfect sense that you would need to convert it to a duration.
time.Second * time.Duration(userInputInt)
- dnautics 8y agothe units on that would be time squared. As a scientist, this makes my brain explode. https://en.wikipedia.org/wiki/Dimensional_analysis https://en.wikipedia.org/wiki/Dimensional_analysis For the record, at least two languages, F# (which is statically typed) and Julia (which is strongly typed) do this 100% correctly