Skip to content

Commit

Permalink
Fix rounding tests in GS64
Browse files Browse the repository at this point in the history
  • Loading branch information
gcotelli committed Aug 9, 2023
1 parent 03639ca commit 3855a39
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/Buoy-Math-GS64-Extensions/Number.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ Number >> isZero [
^ self = 0
]

{ #category : #'*Buoy-Math-GS64-Extensions' }
Number >> round: numberOfWishedDecimal [

^ self roundTo: (10 raisedTo: numberOfWishedDecimal negated)
]

{ #category : #'*Buoy-Math-GS64-Extensions' }
Number >> storeOn: aStream [

Expand Down

0 comments on commit 3855a39

Please sign in to comment.