ClaudeMetz/FactoryPlanner

Round up to nearest tenth (show 5.012 as "5.1")

Closed this issue · 1 comments

Suggestion

Something that FactorioLab does that I like is to include one decimal place but always round up, so a number like "5.024" would be displayed as "5.1", and "5.98" would be displayed as "6.0". An exact value would be displayed without a decimal place like "6". Currently I have to mouse over a value like "6.0" to see if I actually need 7 machines/belts/etc. IMO it would be great if Factory Planner did this by default, or at least had a preference for it.

I know there is a preference available to round up to the nearest whole number, but that loses a lot of information: the difference between needing 5.1 machines and 5.9 machines can change how I approach building my factory. In the former case, for example, I might try to use modules to bring the number of machines needed down to 5, but in the latter case, I'll probably just build 6. Also, while I prefer to use "belts" as a unit of measurement, being able to see a value like "0.5" lets me know that fitting items into a single lane of a belt is an option, so I don't like the rounding preference because of that. (I do know that there's a preference to use "lanes" instead of "belts" as units.)

I didn't see issue #55 in my first open issue search pass, and I think this probably belongs as a comment on that issue.