Skip to content

Commit

Permalink
Fix bug where MOL required an argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcopaganini committed Nov 17, 2024
1 parent 3be8819 commit afa874b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ func newOpsType(ctx decimal.Context, stack *stackType) *opsType {
ophandler{"C", "Speed of light in vacuum, in m/s", 0, func(_ []*decimal.Big) ([]*decimal.Big, int, error) {
return []*decimal.Big{bigFloat("299792458")}, 0, nil
}},
ophandler{"MOL", "Avogadro's number", 1, func(_ []*decimal.Big) ([]*decimal.Big, int, error) {
ophandler{"MOL", "Avogadro's number", 0, func(_ []*decimal.Big) ([]*decimal.Big, int, error) {
return []*decimal.Big{bigFloat("6.02214154e23")}, 0, nil
}},

Expand Down

0 comments on commit afa874b

Please # to comment.