elixir-rational
elixir-rational copied to clipboard
Rational number library for Elixir.
Bumps [decimal](https://github.com/ericmj/decimal) from 2.0.0 to 2.1.1. Changelog Sourced from decimal's changelog. v2.1.1 (2023-04-26) Decimal v2.1 requires Elixir v1.8+. Bug fixes Fix Decimal.compare/2 when comparing against 0 v2.1.0 (2023-04-26) Decimal v2.1...
Bumps [ex_doc](https://github.com/elixir-lang/ex_doc) from 0.28.5 to 0.29.4. Changelog Sourced from ex_doc's changelog. v0.29.4 (2023-03-29) Bug fixes Fix sidebar element with no children taking additional padding Fix elements being rendered too thick...
Bumps [earmark](https://github.com/pragdave/earmark) from 1.4.30 to 1.4.37. Changelog Sourced from earmark's changelog. Earmark 1.4.37 2023-03-03 updating EarmarkParser to v1.4.31 Earmark 1.4.36 2023-02-11 PR-459 Fix api traversal for comment nodes Kudos to...
The implementation would be very simple: ```elixir defmodule Fraction do @doc """ Sigil for fractions. Compiles to `Rational.new/2`. """ defmacro sigil_f({:, _meta, [text]} = _content, _modifiers) do case Code.string_to_quoted!(text) do...
It'd be handy a `round` function for rounding to the nearest whole number (to accompany the `ceil`, `floor`, and `trunc` functions) So far I've been using a helper function in...
Although not too heavy a lift in code, it would be nice if the library parsed a rational number from a string into its representation (and maybe serialized to a...