A typeclass approach to wrapping numeric types in an FPFilter. This way
was chosen, as not all conversions are lossy, so we want to be able to
capture those lossless conversions (Int, Float, Double, some BigInts
and Longs, etc.), while still handling the generic case that is lossy.
A typeclass approach to wrapping numeric types in an
FPFilter
. This way was chosen, as not all conversions are lossy, so we want to be able to capture those lossless conversions (Int
,Float
,Double
, someBigInt
s andLong
s, etc.), while still handling the generic case that is lossy.