Skip to content

Commit c1d6b5f

Browse files
committed
Merge branch 'use-pharo-constants' into better-equality-assertions
2 parents 8f5ecc0 + 3612a46 commit c1d6b5f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Math-CompatibilityUpToPharo11/Float.extension.st

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
Extension { #name : #Float }
22

3+
{ #category : #'*Math-CompatibilityUpToPharo11' }
4+
Float class >> defaultComparisonPrecision [
5+
6+
^ self machineEpsilon sqrt
7+
]
8+
39
{ #category : #'*Math-CompatibilityUpToPharo11' }
410
Float class >> machineEpsilon [
511
"Answer the machine epsilon or macheps, defined by wikipedia asCalypsoItemContext

0 commit comments

Comments
 (0)