Immersive Vehicles (Formerly Transport Simulator)

Immersive Vehicles (Formerly Transport Simulator)

4M Downloads

[Feature request] Rounding variables.

DrprofLuigi opened this issue ยท 3 comments

commented

Add some way to round variables. Maybe _floor, _ceiling, and _round suffixes for variable names.

i.e. engine_hours_1_floor would make 174.7 hours into 174. I'm not sure whether having it after or before the part index number would be best.

I can likely do this myself, I just wanted input particularly on specific implementation.

commented

Is there a spot for the feature where such rounding would be desired?

I had something specific in mind, but after some thought I realized I can do it just fine with VMs.

commented

Actually adding an argument to the animation may be more consistent, similar to absolute and offset.

"roundingType": "round", "roundingType": "floor", and "roundingType": "ceiling"

commented

The only time I can see this being useful is for the text display functions, and those let you round variables by displaying the desired number of decimal points. Is there a spot for the feature where such rounding would be desired?