Skip to content
This repository has been archived by the owner on Nov 28, 2024. It is now read-only.

Evaluate results are not accurate #4

Open
JellyBrick opened this issue Feb 5, 2023 · 0 comments
Open

Evaluate results are not accurate #4

JellyBrick opened this issue Feb 5, 2023 · 0 comments

Comments

@JellyBrick
Copy link

Test code

import com.mpobjects.bdparsii.eval.Parser
import org.junit.Test

class MathTest {
    @Test
    fun testMathExpression() {
        println(Parser.parse("239081204214*1247981247912749").evaluate().toPlainString())
        println(Parser.parse("(70*6)/5").evaluate().toPlainString())
    }
}

Except

298368859587470504923124286
84

Result

298368859587470500000000000
420

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant