mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-19 16:55:26 +02:00
Fixed log function
This commit is contained in:
parent
be420bf230
commit
2212bd84fb
@ -178,8 +178,10 @@ internal class CalculatorViewModel @Inject constructor(
|
|||||||
* mxParser uses some unnecessary rounding for doubles. It causes expressions like 9999^9999
|
* mxParser uses some unnecessary rounding for doubles. It causes expressions like 9999^9999
|
||||||
* to load CPU very much. We use BigDecimal to achieve same result without CPU overload.
|
* to load CPU very much. We use BigDecimal to achieve same result without CPU overload.
|
||||||
*/
|
*/
|
||||||
MathParser.setCanonicalRounding(false)
|
|
||||||
MathParserLicense.iConfirmNonCommercialUse("Sad Ellie")
|
MathParserLicense.iConfirmNonCommercialUse("Sad Ellie")
|
||||||
|
MathParser.setCanonicalRounding(false)
|
||||||
|
MathParser.removeBuiltinTokens("log")
|
||||||
|
MathParser.modifyBuiltinToken("lg", Token.log.dropLast(1))
|
||||||
|
|
||||||
// Observe and invoke calculation without UI lag.
|
// Observe and invoke calculation without UI lag.
|
||||||
viewModelScope.launch(Dispatchers.Default) {
|
viewModelScope.launch(Dispatchers.Default) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user