josdejong / josdejong/mathjs

splitUnit behavior does not match documentation

Open
#3,644 4 comments 0 reactions 0 assignees View on GitHub
bug category:units
Dominant language
JavaScript
Stars
15.1k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
splitUnit behavior does not match documentation

**To Reproduce**
1. Go to https://mathjs.org/index.html
2. Evaluate `(1m).splitUnit(["ft", "in"])` in the parser

Expected: `[ 3 feet, 3.3700787401575 inch ]`
Result: `[1m]`

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.