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.

Reply via email to