modf static method
Implementation
static double modf( double x, ParamFloat y ){
String str = x.toString();
double k;
if( (str.contains( "e" )) || (str.contains( "E" )) ){
k = 1;
} else {
List<String> tmp = str.split( "." );
if( tmp.length > 1 ){
k = pow( 10, tmp[1].length.toDouble() );
} else {
k = 1;
}
}
double i = toInt( x );
y.set( i );
return (x * k - i * k) / k;
}