https://github.com/scriptkitties/perl6-ops-si
Add new suffix operators for SI prefixes
https://github.com/scriptkitties/perl6-ops-si
operator-overloading perl6 perl6-module
Last synced: 12 months ago
JSON representation
Add new suffix operators for SI prefixes
- Host: GitHub
- URL: https://github.com/scriptkitties/perl6-ops-si
- Owner: scriptkitties
- License: agpl-3.0
- Created: 2018-03-26T12:03:20.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-21T21:42:20.000Z (almost 8 years ago)
- Last Synced: 2025-01-12T20:46:12.687Z (about 1 year ago)
- Topics: operator-overloading, perl6, perl6-module
- Language: Perl 6
- Size: 22.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Ops::SI
Add postfix operators for [SI
prefixes](https://en.wikipedia.org/wiki/Metric_prefix).
## Installation
Installation can be done through [zef](https://github.com/ugexe/zef):
```
$ zef install Ops::SI
```
## Usage
In your Perl 6 code, use the module and you're all set.
```perl6
use Ops::SI;
dd 1k; # 1000
dd 2T; # 2000000000000
dd 3µ; # 0.000003
dd 4y; # 4e-24
```
## License
This module is distributed under the terms of the AGPL version 3.0. You can
find it in the `LICENSE` file distributed with the module.