nasa / trick

Trick Simulation Environment. Trick provides a common set of simulation capabilities and utilities to build simulations automatically.
Other
32 stars 16 forks source link

Question : How to round trick view value #1616

Closed tastangh closed 9 months ago

tastangh commented 9 months ago

Hello everyone, I am making a real-time simulation. During this simulation, I observe the data via trick_view. While observing the data, I want to see the data rounded to the nearest value, for example, I want the values ​​in the example below to appear on the view screen as 77.51, 7.44, 43.30, 29.03. While making this request, I want the variable type in the header or the data type used in my algorithm not to be changed, that is, it should be calculated as 77.50927363870733 in my algorithm and simulation, but it should appear as 77.51 on the view screen. Is there a way to do this easily? tastangh

best regards,

hchen99 commented 9 months ago

I don't believe so.