Bug #5346
Mobile Processing Lab MPL-LG-2 shows "1.000 science" when actual value is less than 1
10%
Description
It's possible for the mobile lab to show "1.000 science" in the right-click menu, but still fail to transfer any science ("0 science gained", see screenshot).
This looks like just a simple issue of rounding the wrong way: the value should be truncated at the last decimal place rather than rounding to nearest.
History
#1 Updated by TriggerAu over 8 years ago
- Status changed from New to Needs Clarification
#2 Updated by achurch over 8 years ago
- Status changed from Needs Clarification to Updated
- % Done changed from 0 to 10
Still present in 1.1.3. Can be easily reproduced by setting storedScience = 0.9999 on a mobile lab; the context menu shows "Science: 1.000/500", but clicking Transmit Science shows the error "Cannot transmit data: not enough useful findings".
#3 Updated by Firu over 6 years ago
- File KSP 1-4-3 enough science 1.jpg KSP 1-4-3 enough science 1.jpg added
- File KSP 1-4-3 enough science 2.jpg KSP 1-4-3 enough science 2.jpg added
- File KSP 1-4-3 not enough science.jpg KSP 1-4-3 not enough science.jpg added
Issue still present in 1.4.3
#4 Updated by jclovis3 over 6 years ago
So in other words, if you have less than 1.000 science, it shouldn't show that you have 1.000. It should round down always. This would be like saying the average family has 2.4 kids, but absolutely no family will have 2.4 kids.