M.rnnnn
M.rnnnn

Reputation: 112

division operator error in standard ml and Cpn tools

I'm new in standard ml and I'm using cpn tools.I have some constants:

val PHY=120;
val RB=1;

I want to calculate PHY/RB then I have created val x=PHY/RB; in cpn tools but it has error when I write divide operator what is the problem? please help me to solve this problem. Thanks

Upvotes: 0

Views: 291

Answers (1)

sshine
sshine

Reputation: 16135

The integer division operator in SML is called div.

val x = PHY div RB

Upvotes: 0

Related Questions