Rewrite to using floating point number