Difference between revisions of "Template talk:Infobox/Part/tank/line"

From Kerbal Space Program Wiki
Jump to: navigation, search
 
Line 1: Line 1:
 
A simple question: why does it use numbers with precision of 3 decimals, when the smallest tanks has integer volumes (Oscar-B = 18/22)? - [[User:NWM|NWM]] ([[User talk:NWM|talk]]) 19:44, 3 May 2015 (UTC)
 
A simple question: why does it use numbers with precision of 3 decimals, when the smallest tanks has integer volumes (Oscar-B = 18/22)? - [[User:NWM|NWM]] ([[User talk:NWM|talk]]) 19:44, 3 May 2015 (UTC)
 
:Because it previously carried an amount which required 3 decimal places: http://wiki.kerbalspaceprogram.com/index.php?title=Oscar-B_Fuel_Tank/Box&oldid=53903 but it looks like there is not one tank anymore which requires any decimal places. I'll reduce it to 1 so that I can see if a tank requires decimal places and check whether it shows enough of them. — [[User:XZise|xZise]] <small>&#91;[[User talk:XZise|talk]]&#93;</small> 09:00, 4 May 2015 (UTC)
 
:Because it previously carried an amount which required 3 decimal places: http://wiki.kerbalspaceprogram.com/index.php?title=Oscar-B_Fuel_Tank/Box&oldid=53903 but it looks like there is not one tank anymore which requires any decimal places. I'll reduce it to 1 so that I can see if a tank requires decimal places and check whether it shows enough of them. — [[User:XZise|xZise]] <small>&#91;[[User talk:XZise|talk]]&#93;</small> 09:00, 4 May 2015 (UTC)
 +
:Alternatively, now that I think about it maybe we can have something more sophisticated like “always show at least 4 digits or one decimal place” as everything is handled by this template. A potential downside would be that the numbers wouldn't be aligned as each row would be handled separately. — [[User:XZise|xZise]] <small>&#91;[[User talk:XZise|talk]]&#93;</small> 09:02, 4 May 2015 (UTC)

Latest revision as of 09:02, 4 May 2015

A simple question: why does it use numbers with precision of 3 decimals, when the smallest tanks has integer volumes (Oscar-B = 18/22)? - NWM (talk) 19:44, 3 May 2015 (UTC)

Because it previously carried an amount which required 3 decimal places: http://wiki.kerbalspaceprogram.com/index.php?title=Oscar-B_Fuel_Tank/Box&oldid=53903 but it looks like there is not one tank anymore which requires any decimal places. I'll reduce it to 1 so that I can see if a tank requires decimal places and check whether it shows enough of them. — xZise [talk] 09:00, 4 May 2015 (UTC)
Alternatively, now that I think about it maybe we can have something more sophisticated like “always show at least 4 digits or one decimal place” as everything is handled by this template. A potential downside would be that the numbers wouldn't be aligned as each row would be handled separately. — xZise [talk] 09:02, 4 May 2015 (UTC)