Pure package detail
romannum
gno.land/p/moul/x/daily/romannum/v1
Indexed deployment identity with independently loaded latest RPC source. Functions and Render are realm-only RPC capabilities.
Indexed deployment
Identity
- Package path
- gno.land/p/moul/x/daily/romannum/v1
- Block
- 23369
- Deployed (UTC)
- Transaction
- F1E6B5U4nGwji7rNHo9SwR1N3riusw2GGkBsjx1kw0I=
Latest RPC state
Source
# `gno.land/p/moul/x/daily/romannum/v1`
**Roman-numeral converter** — `ToRoman`, `FromRoman`.
A pure port of the classic kata, valid for **1..3999**. `ToRoman` uses greedy
subtractive notation (panics out of range); `FromRoman` accepts a numeral only
if it is canonical (it must round-trip through `ToRoman`), so malformed forms
like `IIII`, `VV`, or `IC` are rejected. Deterministic — no time, randomness, or
I/O — and free of any realm coupling.
```go
import "gno.land/p/moul/x/daily/romannum/v1"
s := romannum.ToRoman(2024) // "MMXXIV"
n := romannum.FromRoman(s) // 2024 (panics on a malformed numeral)
```
**Live demo:** [`r/moul/x/daily/romannumdemo`](https://github.com/moul/gno-contracts/tree/main/r/moul/x/daily/romannumdemo/v1)
· render it at [`/r/moul/x/daily/romannumdemo/v1`](https://gno.land/r/moul/x/daily/romannumdemo/v1).
<!-- BEGIN GNOCONTRACTS FOOTER (generated by `make readmes`; do not edit below) -->
---
Part of **[moul/gno-contracts](https://github.com/moul/gno-contracts)** — moul's versioned gno.land contracts. See the repository for the full catalog, build/test tooling, and usage.
> 🧪 **Highly experimental — potentially vibe-coded.** Not audited; may break, change, or be removed at any time. Do not use with anything of value. Full disclaimer: [DISCLAIMER](https://github.com/moul/gno-contracts/blob/main/DISCLAIMER.md).
<!-- END GNOCONTRACTS FOOTER -->
The verified vm/qfuncs operation accepts realm paths only.
Pure packages expose source files but do not have Realm Render.