Skip to content

Commit 3612a46

Browse files
committed
Add compatibility method
1 parent 9d01092 commit 3612a46

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)