• Robert Griesemer's avatar
    math/big: multi-precision Floats (starting point) · bd275b23
    Robert Griesemer authored
    Implemented:
    - +, -, *, /, and some unary ops
    - all rounding modes
    - basic conversions
    - string to float conversion
    - tests
    
    Missing:
    - float to string conversion, formatting
    - handling of +/-0 and +/-inf (under- and overflow)
    - various TODOs and cleanups
    
    With precision set to 24 or 53, the results match
    float32 or float64 operations exactly (excluding
    NaNs and denormalized numbers which will not be
    supported).
    
    Change-Id: I3121e90fc4b1528e40bb6ff526008da18b3c6520
    Reviewed-on: https://go-review.googlesource.com/1218Reviewed-by: 's avatarAlan Donovan <adonovan@google.com>
    bd275b23
rat.go 18.6 KB