josdejong / josdejong/mathjs

Don't convert between fractions and decimals in simplify

Open
#2,398 6 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
JavaScript
Stars
15.1k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

Hello, I'm using mathjs' simplify method and I'm wondering if it's possible to stop simplify from converting between decimal/fractions entirely. For example, I'd like `2/4` to simplify to `1/2`, and `.5` to simplify to `.5`, and `.5a + 2/4b` to simplify to `.5a + 1/2b`. In the case of `.5*2/4`, I don't really care if it's `.25` or `1/4`. Is there any way to achieve this?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.