Does java use BODMAS?

后端 未结 2 865
傲寒
傲寒 2021-01-28 06:34

At the moment, I\'m trying to make a calculator using the java programming language. However, I need to know whether or not java uses BODMAS so that I\'ll know whether to make a

2条回答
  •  北海茫月
    2021-01-28 06:53

    First, thanks for asking the question. I personally have never heard the term BODMAS. Now I know that it means :

    B
    Brackets first
    O
    Orders (ie Powers and Square Roots, etc.)
    DM
    Division and Multiplication
    AS
    Addition and Subtraction
    

    So, I personally do not know language that does not support BODNAS internally. I however cannot understand how do you want to use this fact when implementing your calculator.

提交回复
热议问题