add methods for float calculation