function is_float( mixed_var ) {
// Returns true if variable is float point
//
// version: 812.1017
// discuss at: http://phpjs.org/functions/is_float
// + original by: Paulo Ricardo F. Santos
// % note 1: 1.0 is simplified to 1 before it can be accessed by the function, this makes
// % note 1: it different from the PHP implementation. We can't fix this unfortunately.
// * example 1: is_float(186.31);
// * returns 1: true
return parseFloat(mixed_var * 1) != parseInt(mixed_var * 1);
}