difftreelog
feat add std.round
in: master
Upstream issue: https://github.com/google/go-jsonnet/pull/683
2 files changed
crates/jrsonnet-stdlib/src/lib.rsdiffbeforeafterboth--- a/crates/jrsonnet-stdlib/src/lib.rs
+++ b/crates/jrsonnet-stdlib/src/lib.rs
@@ -104,6 +104,7 @@
("exp", builtin_exp::INST),
("mantissa", builtin_mantissa::INST),
("exponent", builtin_exponent::INST),
+ ("round", builtin_round::INST),
// Operator
("mod", builtin_mod::INST),
("primitiveEquals", builtin_primitive_equals::INST),
crates/jrsonnet-stdlib/src/math.rsdiffbeforeafterboth115 frexp(x).1115 frexp(x).1116}116}117118#[builtin]119pub fn builtin_round(x: f64) -> f64 {120 x.round()121}117122