1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use super::*; builtin! { ConstantPi { name: "pi", constant(config) { Number::Approx( Float::with_val_round( config.precision(), Constant::Pi, config.rounding_mode, ) .0, ) } } }