Skip to content

implement BODMAS order #7

@SignpostMarv

Description

@SignpostMarv

While testing #6, the cause was found to be TokenScan not implementing BODMAS order & instead doing left-to-right order.

workaround is to use parenthesis.

e.g. $((11 * (15*0.707143)) * 1) - 11 * (15*0.707143)$ with left-to-right order is treated as $(((11 * (15*0.707143)) * 1) - 11) * (15*0.707143)$ when it should be treated as $((11 * (15*0.707143)) * 1) - (11 * (15*0.707143))$ with bodmas.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions