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

Evaluate results are not accurate #4

@JellyBrick

Description

@JellyBrick

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions