Skip to content

Commit

Permalink
Add Number>>#nthRoot: to GS package
Browse files Browse the repository at this point in the history
  • Loading branch information
gcotelli committed Aug 9, 2023
1 parent a47c903 commit 8bb5f55
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/Buoy-Math-GS64-Base-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-Base-Extensions' }
Number >> nthRoot: aPositiveInteger [

^ self raisedTo: aPositiveInteger reciprocal
]

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

Expand Down

0 comments on commit 8bb5f55

Please sign in to comment.