mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
math: make consts and structs public
This commit is contained in:
parent
ddcd1d2cec
commit
9e9935acbc
@ -6,7 +6,7 @@ module complex
|
||||
|
||||
import math
|
||||
|
||||
struct Complex {
|
||||
pub struct Complex {
|
||||
pub:
|
||||
re f64
|
||||
im f64
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
module math
|
||||
|
||||
const (
|
||||
pub const (
|
||||
e = 2.71828182845904523536028747135266249775724709369995957496696763
|
||||
pi = 3.14159265358979323846264338327950288419716939937510582097494459
|
||||
phi = 1.61803398874989484820458683436563811772030917980576286213544862
|
||||
@ -25,7 +25,7 @@ const (
|
||||
// Floating-point limit values
|
||||
// max is the largest finite value representable by the type.
|
||||
// smallest_non_zero is the smallest positive, non-zero value representable by the type.
|
||||
const (
|
||||
pub const (
|
||||
max_f32 = 3.40282346638528859811704183484516925440e+38 // 2**127 * (2**24 - 1) / 2**23
|
||||
smallest_non_zero_f32 = 1.401298464324817070923729583289916131280e-45 // 1 / 2**(127 - 1 + 23)
|
||||
|
||||
@ -34,7 +34,7 @@ const (
|
||||
)
|
||||
|
||||
// Integer limit values
|
||||
const (
|
||||
pub const (
|
||||
max_i8 = 127
|
||||
min_i8 = -128
|
||||
max_i16 = 32767
|
||||
|
Loading…
Reference in New Issue
Block a user