Project

General

Profile

Bug #67

Equality tests with floating point numbers.

Added by Sylvain Laperche over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
03/30/2012
Due date:
% Done:

0%

Estimated time:

Description

2 possibilities:
- in fact you want use integer: in this case apply my micro-patch
- you really want use a floating point number: in this cas, read carefully this very interesting article1 and implement the solution in function of your constraints

[1] http://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/


Files

int_eq.patch (521 Bytes) int_eq.patch Sylvain Laperche, 03/30/2012 11:26 PM

History

#1

Updated by Robin Hahling over 8 years ago

  • Status changed from New to Closed
  • Assignee set to Robin Hahling
  • Target version set to 2.3.0
#2

Updated by Robin Hahling over 8 years ago

Thanks for the patch and the link!

Also available in: Atom PDF