Project

General

Profile

Bug #5346

Mobile Processing Lab MPL-LG-2 shows "1.000 science" when actual value is less than 1

Added by achurch over 9 years ago. Updated over 6 years ago.

Status:
Updated
Severity:
Low
Assignee:
-
Category:
Parts
Target version:
-
Start date:
08/24/2015
% Done:

10%

Version:
Platform:
Any
Expansion:
Language:
English (US)
Mod Related:
No
Votes:
Arrow u r green
Arrow d r red

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.

1.000-science.png (255 KB) 1.000-science.png [email protected] achurch, 08/24/2015 06:30 PM
KSP 1-4-3 enough science 2.jpg (312 KB) KSP 1-4-3 enough science 2.jpg after transmitting with 1.001 science Firu, 05/13/2018 07:25 PM
KSP 1-4-3 enough science 1.jpg (305 KB) KSP 1-4-3 enough science 1.jpg 1.001 science Firu, 05/13/2018 07:25 PM
KSP 1-4-3 not enough science.jpg (310 KB) KSP 1-4-3 not enough science.jpg 1.000 science Firu, 05/13/2018 07:25 PM
7316
36149
36150
36151

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".

#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.

Also available in: Atom PDF