instance implemented for fractional and floating.