Or, as an alternative, use the built in methods to get seconds in
floating point:

https://play.golang.org/p/euWSlfDf3Y

//jb

2016-07-07 0:20 GMT+02:00 Dan Kortschak <dan.kortsc...@adelaide.edu.au>:
> Type convert *prior* to the division.
>
> https://play.golang.org/p/7cwTFu_3im
>
> On Wed, 2016-07-06 at 15:01 -0700, Tong Sun wrote:
>> To make the point, let's use *68 seconds*,
>>
>> https://play.golang.org/p/mfuJQa3_65
>>
>> I need the result to be 52.94, instead of 52.
>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to