Ø "multiply first, then divide."
While often the right method, I don’t think that it always is. Consider:
- Integer: It is as long as the product doesn’t overflow (before the divide).
- Floating: I’m inclined to think that combining numbers of the same magnitude first might be a better approach.
John
John Souvestre - New Orleans LA
--
--
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@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+unsubscribe@googlegroups.com.
--
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@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...@googlegroups.com.
--
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+unsubscribe@googlegroups.com.
What is an arbitrary precision float? 1/3, Pi, ✓2 ?
--
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+unsubscribe@googlegroups.com.
Awesome, thanks!
I just can't match "arbitrary precision" and "float" expressions: 1/3 is rational, but can't be represented with float-like data structure.
The same problem is with arbitrary precision uint: what will ^uint-1 be?
So, arbitrary precision int and user-specified-precision float is great and wanted, but arbitrary precision uint and float is nonsense.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.