fix: replications

This commit is contained in:
Felix Roos 2022-03-19 14:05:22 +01:00
parent 77fd516b15
commit 73738acf91

View File

@ -56,9 +56,7 @@ function resolveReplications(ast) {
options_: {
operator: {
type_: 'stretch',
// valueOf should be ok here, as we turn it into a string
// fraction.js doc: "If you want to keep the number as it is, convert it to a string, as the string parser will not perform any further observations"
arguments_: { amount: String(new Fraction(replicate).inverse().valueOf()) },
arguments_: { amount: new Fraction(replicate).inverse().toString() },
},
},
},