floorTo method
Floors the number to fractionDigits decimal places.
Implementation
double floorTo({required int fractionDigits}) {
if (this == null) return 0.0;
final factor = pow(10, fractionDigits);
return (this! * factor).floor() / factor;
}