1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

math.fractions: make the numerator and denominator public (#11018)

This commit is contained in:
Yuval Greenfield 2021-08-02 08:50:11 -07:00 committed by GitHub
parent 69f31d8d5c
commit 820669b011
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,9 +15,9 @@ import math.bits
// 2. d cannot be set to zero. The factory function will panic.
// 3. If provided d is negative, it will be made positive. n will change as well.
struct Fraction {
n i64
d i64
pub:
n i64
d i64
is_reduced bool
}