/raku-Rat-Power

Overrides power operator '**' when raising power by a Rat

Primary LanguageRakuArtistic License 2.0Artistic-2.0

License: Artistic-2.0

Rat::Power

SYNOPSIS

use Rat::Power;

say 64 ** ⅓;        #Int
say 64 ** ⅔;        #Int
say 60 ** ⅓;        #Num

Caveats

  • exponent must be Rat where * == (½,⅓,⅔,¼,¾).any
  • base and result must be Int

AUTHOR

librasteve librasteve@furnival.net

COPYRIGHT AND LICENSE

Copyright 2024 librasteve

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.