iTwin / itwinjs-core

Monorepo for iTwin.js Library
https://www.itwinjs.org
MIT License
615 stars 210 forks source link

Add parsing of math operations in quantity formatter. For input fields. #6935

Open mathieu-fournier opened 3 months ago

mathieu-fournier commented 3 months ago

Add the ability to parse simple math operations in quantity formatter.

This will be usefull to do simple calculation inside input fields. Ex: "10ft + 2" "10ft + 6in" "10ft - 1m" "10ft * 2" "10 / 2" (no units, defaults to the active unit system)

mathieu-fournier commented 3 months ago

FYI : I'll clone the repo, implement it and do a PR.