toDouble static method

double toDouble(
  1. dynamic x
)

Implementation

static double toDouble( dynamic x ){
	if( x is MathValue ){
		return x.toFloat();
	} else if( x is int ){
		return x.toDouble();
	}
	return x as double;
}