Opened 17 years ago

Closed 17 years ago

#998 closed defect (fixed)

Decimal numbers may be incorrectly rounded

Reported by: Johan Vallon-Christersson Owned by: everyone
Priority: major Milestone: BASE 2.6.3
Component: web Version:
Keywords: Cc:

Description

Numbers are not sorted correctly. Bioassay, Spots data, Sort Ch1.

Attachments (1)

Bioassay_Spot_Data_Sort_ch1.jpg (157.3 KB ) - added by Johan Vallon-Christersson 17 years ago.

Download all attachments as: .zip

Change History (3)

by Johan Vallon-Christersson, 17 years ago

comment:1 by Nicklas Nordborg, 17 years ago

Milestone: BASE 2.6.3
Priority: criticalmajor
Summary: Incorrect sort order, floats: Bioassay -> Spot dataDecimal numbers may be incorrectly rounded

I don't think this problem is related to the ordering. It is more likely related to the rounding and display of numbers. This defect may have been introduced by the fix to #985. In this case I think that the values 53.30 and 53.80 should be 53.03 and 53.08. Looking at the code it seems like the padding with 0:s is done in the wrong place.

comment:2 by Nicklas Nordborg, 17 years ago

Resolution: fixed
Status: newclosed

(In [4238]) Fixes #998: Decimal numbers may be incorrectly rounded

Note: See TracTickets for help on using tickets.