generic: macro to convert floating-point values to integer refs #247