nortakales / vs-code-qalc

Interactive scratchpad calculator for VS Code
MIT License
70 stars 2 forks source link

Percentages with variables #7

Closed skinneejoe closed 2 years ago

skinneejoe commented 2 years ago

I don't seem to be able to get percentages working with variables. Maybe this is a known issue. Example:

`total = 500

53% off of total

total =32,639.9

53% off of 500 =235`

skinneejoe commented 2 years ago

image

The text didn't paste very well, I think this attached image will do better.

danilort commented 2 years ago

I think the Total name is reserved. immagine

Try like this: immagine

skinneejoe commented 2 years ago

I think the Total name is reserved. immagine

Try like this: immagine

I think the issue is more specifically with the "off of" keyword, see below: image

nortakales commented 2 years ago

This will be fixed in the next release. In addition, I have fixed a bug where total = 500 should have been displaying an error message.

nortakales commented 2 years ago

Bug fixed in Qalc v0.1.8

skinneejoe commented 2 years ago

Awesome, thank you!!