Author Topic: Allow simple math in number fields  (Read 1127 times)

0 Members and 1 Guest are viewing this topic.

duke54

  • World Machine Guru
  • ****
  • Posts: 78
    • View Profile
Allow simple math in number fields
« on: March 05, 2016, 09:34:46 AM »
In many 3D packages you can enter basic math (add,subtract,multiply,divide) into a number field to compute a result, and this would be very handy in WM :)

jgwinner

  • World Machine Veteran
  • ***
  • Posts: 39
    • View Profile
Re: Allow simple math in number fields
« Reply #1 on: May 19, 2016, 08:30:50 AM »
What about scalar arithmetic? You can calculate a number and plug it into the field.

Or do you mean in the field itself? I think you'd do that with the above method.

Let me know if you need more info.

== John ==

sfriedberg

  • World Machine Guru
  • ****
  • Posts: 66
    • View Profile
Re: Allow simple math in number fields
« Reply #2 on: May 19, 2016, 10:01:30 AM »
He means in the field itself.  So instead of being limited to numeric literals, fields would accept simple arithmetic expressions, evaluate them and use the result as if you had entered that literal value.  Not talking about "live" expressions.