The Forum is up for sale: XeNTaX Forum looking for new owner

Some math in quickbms

Coders and would-be coders alike, this is the place to talk about programming.
Post Reply
finale00
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2382
Joined: Sat Apr 09, 2011 1:22 am
Has thanked: 170 times
Been thanked: 307 times

Some math in quickbms

Post by finale00 »

My desired expression: total = (numFiles - 1) * 12

I wrote

Code: Select all

math total = numFiles
math total -= 1
math total *= 12
Although it works, is this the only way to do math operations?
Mr.Mouse
Site Admin
Posts: 4073
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 450 times
Been thanked: 680 times
Contact:

Re: Some math in quickbms

Post by Mr.Mouse »

In my original BMS (or MexScript) it is indeed.
Post Reply