Skip to content

[Bug] Missing truncation/rounding of long decimals in Multi Level Winds table #2656

@jimmiedave

Description

@jimmiedave

Describe the bug

While "Altitude" in multi-level winds table shows as integers, clicking an altitude value shows a 12-place decimal value. It appears to be lack of rounding or truncation of the value adjusted to the user's preferred units. Same problem in Wind Speed and Deviation. It's assumed it's possible for any number in the table to be displayed with an over-long decimal component depending upon context.

To Reproduce

  1. Open "A Simple Model Rocket"
  2. Change or ensure that units for "Distance" and "Velocity" are set to some imperial unit.
  3. Go to "Flight simulations" tab
  4. Click "Edit simulation"
  5. Choose "Multi-level" in "Wind model to use"
  6. Click "Add level" at least 3 times
  7. Click in the table on some non-zero Altitude, Speed or Deviation
  8. Note long decimal value
    ...

Screenshots / .ork file

Screenshot(s):

Screenshot 2025-01-04 at 10 59 31 PM Screenshot 2025-01-04 at 10 59 39 PM

OpenRocket version

24.12.01 beta 1

What platform are you running on?

macOS

Additional context

macOS Sonoma 14.7.1 MacBook Pro M3 Max processor

Verified on Windows 10 too

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions