Floating point method working