Types
FractionInt = int
- Source Edit
Procs
func `$`(self: PyFraction): string {....raises: [], tags: [], forbids: [].}
- Source Edit
func `%`(a, b: PyFraction): PyFraction {....raises: [], tags: [], forbids: [].}
- Source Edit
func `%`(a: PyFraction; b: float): float {....raises: [], tags: [], forbids: [].}
- Source Edit
func `%`(a: PyFraction; b: int): PyFraction {....raises: [], tags: [], forbids: [].}
- Source Edit
func `%`(b: float; a: PyFraction): float {....raises: [], tags: [], forbids: [].}
- Source Edit
func `%`(b: int; a: PyFraction): PyFraction {....raises: [], tags: [], forbids: [].}
- Source Edit
func `%=`(self: PyFraction; other: PyFraction) {....raises: [], tags: [], forbids: [].}
- Source Edit
func `*`(a, b: PyFraction): PyFraction {....raises: [], tags: [], forbids: [].}
- Source Edit
func `*`(a: PyFraction; b: float): float {....raises: [], tags: [], forbids: [].}
- Source Edit
func `*`(a: PyFraction; b: int): PyFraction {....raises: [], tags: [], forbids: [].}
- Source Edit
func `*`(b: float; a: PyFraction): float {....raises: [], tags: [], forbids: [].}
- Source Edit
func `*`(b: int; a: PyFraction): PyFraction {....raises: [], tags: [], forbids: [].}
- Source Edit
func `*=`(a, b: PyFraction) {....raises: [], tags: [], forbids: [].}
- Source Edit
func `*=`(a: PyFraction; b: float) {.error: "Python allowed this but make `self` to a float".}
- Source Edit
func `*=`(a: PyFraction; b: int) {....raises: [], tags: [], forbids: [].}
- Source Edit
func `+`(a, b: PyFraction): PyFraction {....raises: [], tags: [], forbids: [].}
- Source Edit
func `+`(a: PyFraction; b: float): float {....raises: [], tags: [], forbids: [].}
- Source Edit
func `+`(a: PyFraction; b: int): PyFraction {....raises: [], tags: [], forbids: [].}
- Source Edit
func `+`(b: float; a: PyFraction): float {....raises: [], tags: [], forbids: [].}
- Source Edit
func `+`(b: int; a: PyFraction): PyFraction {....raises: [], tags: [], forbids: [].}
- Source Edit
func `+=`(a, b: PyFraction) {....raises: [], tags: [], forbids: [].}
- Source Edit
func `+=`(a: PyFraction; b: float) {.error: "Python allowed this but make `self` to a float".}
- Source Edit
func `+=`(a: PyFraction; b: int) {....raises: [], tags: [], forbids: [].}
- Source Edit
func `-`(a, b: PyFraction): PyFraction {....raises: [], tags: [], forbids: [].}
- Source Edit
func `-`(a: PyFraction; b: float): float {....raises: [], tags: [], forbids: [].}
- Source Edit
func `-`(a: PyFraction; b: int): PyFraction {....raises: [], tags: [], forbids: [].}
- Source Edit
func `-`(b: float; a: PyFraction): float {....raises: [], tags: [], forbids: [].}
- Source Edit
func `-`(b: int; a: PyFraction): PyFraction {....raises: [], tags: [], forbids: [].}
- Source Edit
func `-=`(a, b: PyFraction) {....raises: [], tags: [], forbids: [].}
- Source Edit
func `-=`(a: PyFraction; b: float) {.error: "Python allowed this but make `self` to a float".}
- Source Edit
func `-=`(a: PyFraction; b: int) {....raises: [], tags: [], forbids: [].}
- Source Edit
func `/`(a, b: PyFraction): PyFraction {....raises: [], tags: [], forbids: [].}
- Source Edit
func `/`(a: PyFraction; b: float): float {....raises: [], tags: [], forbids: [].}
- Source Edit
func `/`(a: PyFraction; b: int): PyFraction {....raises: [], tags: [], forbids: [].}
- Source Edit
func `/`(b: float; a: PyFraction): float {....raises: [], tags: [], forbids: [].}
- Source Edit
func `/`(b: int; a: PyFraction): PyFraction {....raises: [], tags: [], forbids: [].}
- Source Edit
func `//`(a, b: PyFraction): FractionInt {....raises: [], tags: [], forbids: [].}
- Source Edit
func `/=`(a, b: PyFraction) {....raises: [], tags: [], forbids: [].}
- Source Edit
func `/=`(a: PyFraction; b: float) {.error: "Python allowed this but make `self` to a float".}
- Source Edit
func `/=`(a: PyFraction; b: int) {....raises: [], tags: [], forbids: [].}
- Source Edit
func `<`(a, b: PyFraction): bool {....raises: [], tags: [], forbids: [].}
- Source Edit
func `<=`(a, b: PyFraction): bool {....raises: [], tags: [], forbids: [].}
- Source Edit
func `==`(a, b: PyFraction): bool {....raises: [], tags: [], forbids: [].}
- Source Edit
func abs(self: PyFraction): PyFraction {....raises: [], tags: [], forbids: [].}
- Source Edit
func as_integer_ratio(self: PyFraction): (FractionInt, FractionInt) {. ...raises: [], tags: [], forbids: [].}
- Source Edit
func ceil(self: PyFraction): int {....raises: [], tags: [], forbids: [].}
- Source Edit
func denominator(self: PyFraction): FractionInt {....raises: [], tags: [], forbids: [].}
- Source Edit
func denominator=(self: PyFraction; v: FractionInt) {. error: "AttributeError: can\'t set attribute".}
- Source Edit
func float(self: PyFraction): system.float {....raises: [], tags: [], forbids: [].}
- Source Edit
func floor(self: PyFraction): int {....raises: [], tags: [], forbids: [].}
- Source Edit
func Fraction(f: float): PyFraction {....raises: [], tags: [], forbids: [].}
- Source Edit
func Fraction(numerator = 0; denominator = 1): PyFraction {....raises: [], tags: [], forbids: [].}
- Source Edit
func Fraction(other: PyFraction): PyFraction {....raises: [], tags: [], forbids: [].}
- Source Edit
func Fraction(str: string): PyFraction {....raises: [ValueError], tags: [], forbids: [].}
- Source Edit
func from_float(typ: typedesc[PyFraction]; flt: float): PyFraction
- Source Edit
func hash(self: PyFraction): int {....raises: [], tags: [], forbids: [].}
- Source Edit
func is_integer(self: PyFraction): bool {....raises: [], tags: [], forbids: [].}
- Source Edit
func newPyFraction(): PyFraction {....raises: [], tags: [], forbids: [].}
- Source Edit
func numerator(self: PyFraction): FractionInt {....raises: [], tags: [], forbids: [].}
- Source Edit
func numerator=(self: PyFraction; v: FractionInt) {. error: "AttributeError: can\'t set attribute".}
- Source Edit
func repr(self: PyFraction): string {....raises: [], tags: [], forbids: [].}
- Source Edit
func round(self: PyFraction): int {....raises: [], tags: [], forbids: [].}
- Source Edit
func round(self: PyFraction; ndigits: int): float {....raises: [], tags: [], forbids: [].}
- Source Edit
func toPyFraction(r: Rational[int]): PyFraction {....raises: [], tags: [], forbids: [].}
- Source Edit
func toTFraction[T](r: Rational[T]): PyFraction
- Source Edit
Templates
template conjugate(self: PyFraction): PyFraction
- Source Edit
template imag(self: PyFraction): int
- Source Edit
template real(self: PyFraction): PyFraction
- Source Edit