carbon.rational

このモジュールでは、分数型を扱うことが出来ます。

Members

Aliases

over
alias over = rational
rational
Rational!(Unqual!(CommonType!(T, U))) rational(T num, U den)
Rational!(Unqual!T) rational(T num)

This is the type that you can calculate fraction. Rational!T has two integral T values.

Functions

Structs

Rational
struct Rational(T)

This is the type that you can calculate fraction. Rational!T has two integral T values.

Templates

isRationalType
template isRationalType(T)

true if T is rational

Meta