https://godoc.org/golang.org/x/image/math/fixed might provide some hints how to 
work with this kind of type.

The idea is to use a special type and provide all operations you need.

https://godoc.org/math/big#Rat might be helpful to create first tests of the 
basic math operations with maximum precision, before reducing precision with a 
conversion to a more limited data type. 

-- 
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