splendo / kaluga

Collection of multiplatform kotlin components, mainly using coroutines and flow
Apache License 2.0
276 stars 6 forks source link

Scientific Split #759

Closed Daeda88 closed 5 months ago

Daeda88 commented 5 months ago

Is your feature request related to a problem? Please describe.

757 introduces formatting for Scientific Values as its denominators, but splitting up a value into components can also be useful outside of formatting. We should add support for that

Describe the solution you'd like Add a split and toComponents method to ScientificValue classes to allow for splitting them like we do in the DenominatorFormatter. The formatter should then use this new logic.