dyne / Zenroom

Embedded no-code VM executing human-like language to manipulate data and process cryptographic operations.
https://dev.zenroom.org
GNU Affero General Public License v3.0
197 stars 64 forks source link

minus operation in parenthesis return `Invalid arithmetical expression` #966

Open matteo-cristino opened 1 day ago

matteo-cristino commented 1 day ago

In the statement When I create the result of '' when using a minus sign as first operation inside a parenthesis zenroom interprets it as a invalid mathematical expression.

Given nothing

When I set '2' to '2' as 'integer'
When I set '3' to '3' as 'integer'

When I create the result of '(3 - 2)'

Then print the 'result'

results in

[!] Invalid arithmetical expression