NO MOM
I CANT PAUSE.
Scientific Number Tools Documentation
Support
Browse lessons

5. Calculate operations and purchase costs

Calculate a batch purchase cost before spending.

On this page

Goal: Calculate a batch purchase cost before spending.

Before you start: The Normal wallet and error handling.

The idea you will use

Cost sums the unit prices; Current Owned shifts the starting price. Calculating does not spend resources.

Predict before running

With starting price 100 and increment 50, do three units cost 300 or 450?

Build and check

In this exercise, you will check individual calculations and a purchase with increasing prices. Use the BP_MiNumero you created earlier; you do not need additional assets or sample files.

  1. Open its EventGraph and keep the flow calculate → Is Success → Branch → show value or error.
  2. Search for an operation from the table in the graph menu. Create its inputs with Make Scientific Number; leave Exponent at 0 for these values.
  3. Connect the result to the checking flow. Compile, press Play, and compare with the table. Stop Play before changing the operation.
  4. If the node returns a bool and Out Error, check the bool with Branch and use Out Error on the failure branch. Connect white pins when the node has execution pins.
Operation Inputs Expected standalone result
Subtract 3000, 2000 1000
Multiply 2000, 3000 6000000
Divide 3000, 3 1000
Power Base 2, Exponent 10 1024
Square Root 144 12
Apply Production Current Value 1000, Production Per Second 25, Delta Seconds 4 1100
Arithmetic Purchase Cost Num Items 3, Price Start 100, Price Add 50, Current Owned 0 450
Max Affordable Arithmetic Resources Available 1000, Price Start 100, Price Add 50, Current Owned 0 5

The cost of three units is 100 + 150 + 200 = 450. With 1000, you can buy 5: they cost 1000 total; six would cost 1350.

When finished: you should be able to change an input, repeat the calculation, and explain its result before applying a format.

Check your reasoning

See the explanation

450: 100 + 150 + 200. With Current Owned = 2, the next three cost 200 + 250 + 300 = 750.

Your turn: Set Current Owned to 2 and predict the cost of three units before running.

Ready to continue when: you can separate calculation, affordability and the actual deduction.

Back to the path and its extensions

No Mom I Cant Pause · Contact support · Discord

Scientific Number Tools 1.0.0 · Practical lessons ·