invernyx / smartcars-3-bugs

The bug tracker for the smartCARS 3 application
3 stars 0 forks source link

[BUG] - `{fuelUsed}` rounding #276

Closed jordanhavard closed 1 year ago

jordanhavard commented 1 year ago

Describe the bug

We're using this variable in our flight logger to display how much fuel was used when landing happens and its returning a result like the below 6678.6886079999995

How do you reproduce this bug?

  1. Add {fuelUsed} to flight logger for landing
  2. fly a normal flight
  3. observe logbook

Expected behavior

This number could do with some rounding. Alternatively if it needs to be specific, can a new variable be created like {fuelUsedRounded} or something

Screenshots

image

Operating system

Win 11 latest

Community airline

QVirtual

smartCARS Version

0.12

Plugins installed

all except simbrief

Additional context

No response

bgiorgio0506 commented 1 year ago

this bug will be fixed fuelUsed will now be rounded