Skip to content

Commit

Permalink
fix(ratio): change new not float_new
Browse files Browse the repository at this point in the history
  • Loading branch information
GreasySlug committed May 6, 2023
1 parent 6972a53 commit d9c9993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/erg_compiler/context/initialize/classes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl Context {
complex.register_builtin_const(
EPSILON,
Visibility::BUILTIN_PUBLIC,
ValueObj::Ratio(Ratio::float_new(2.220446049250313e-16)),
ValueObj::Ratio(Ratio::new(1, 9999977796)),
);
complex.register_builtin_py_impl(
REAL,
Expand Down

0 comments on commit d9c9993

Please sign in to comment.