julia 1.10.10
Float32 julia> 2.5f-4 0.00025f0 Values can be converted to Float32 easily: julia> x = Float32(-1.5) -1.5f0 julia> typeof(x) Float32 Hexadecimal floating-point literals are also valid, but only as Float64 cleaner:CHAPTER 4. INTEGERS AND FLOATING-POINT NUMBERS 24 julia> x = 3 3 julia> 2x^2 - 3x + 1 10 julia> 1.5x^2 - .5x + 1 13.0 It also makes writing exponential functions more elegant: julia> 2^2x 64 The with the equivalent E form. • The 32-bit floating-point literal expression 1.5f22 could be interpreted as the numeric literal 1.5 multiplied by the variable f22. In all cases the ambiguity is resolved0 码力 | 1692 页 | 6.34 MB | 3 月前3Julia 1.10.9
Float32 julia> 2.5f-4 0.00025f0 Values can be converted to Float32 easily: julia> x = Float32(-1.5) -1.5f0 julia> typeof(x) Float32 Hexadecimal floating-point literals are also valid, but only as Float64 julia> x = 3 3 julia> 2x^2 - 3x + 1CHAPTER 4. INTEGERS AND FLOATING-POINT NUMBERS 24 10 julia> 1.5x^2 - .5x + 1 13.0 It also makes writing exponential functions more elegant: julia> 2^2x 64 The with the equivalent E form. • The 32-bit floating-point literal expression 1.5f22 could be interpreted as the numeric literal 1.5 multiplied by the variable f22. In all cases the ambiguity is resolved0 码力 | 1692 页 | 6.34 MB | 3 月前3Julia 1.11.4
AND FLOATING-POINT NUMBERS 21 Values can be converted to Float32 easily: julia> x = Float32(-1.5) -1.5f0 julia> typeof(x) Float32 Hexadecimal floating-point literals are also valid, but only as Float64 makes writing polynomial expressions much cleaner: julia> x = 3 3 julia> 2x^2 - 3x + 1 10 julia> 1.5x^2 - .5x + 1 13.0 It also makes writing exponential functions more elegant: julia> 2^2x 64 The with the equivalent E form. • The 32-bit floating-point literal expression 1.5f22 could be interpreted as the numeric literal 1.5 multiplied by the variable f22. In all cases the ambiguity is resolved0 码力 | 2007 页 | 6.73 MB | 3 月前3Julia 1.11.5 Documentation
AND FLOATING-POINT NUMBERS 21 Values can be converted to Float32 easily: julia> x = Float32(-1.5) -1.5f0 julia> typeof(x) Float32 Hexadecimal floating-point literals are also valid, but only as Float64 makes writing polynomial expressions much cleaner: julia> x = 3 3 julia> 2x^2 - 3x + 1 10 julia> 1.5x^2 - .5x + 1 13.0 It also makes writing exponential functions more elegant: julia> 2^2x 64 The with the equivalent E form. • The 32-bit floating-point literal expression 1.5f22 could be interpreted as the numeric literal 1.5 multiplied by the variable f22.CHAPTER 5. INTEGERS AND FLOATING-POINT NUMBERS0 码力 | 2007 页 | 6.73 MB | 3 月前3Julia 1.11.6 Release Notes
AND FLOATING-POINT NUMBERS 21 Values can be converted to Float32 easily: julia> x = Float32(-1.5) -1.5f0 julia> typeof(x) Float32 Hexadecimal floating-point literals are also valid, but only as Float64 makes writing polynomial expressions much cleaner: julia> x = 3 3 julia> 2x^2 - 3x + 1 10 julia> 1.5x^2 - .5x + 1 13.0 It also makes writing exponential functions more elegant: julia> 2^2x 64 The with the equivalent E form. • The 32-bit floating-point literal expression 1.5f22 could be interpreted as the numeric literal 1.5 multiplied by the variable f22.CHAPTER 5. INTEGERS AND FLOATING-POINT NUMBERS0 码力 | 2007 页 | 6.73 MB | 3 月前3julia 1.13.0 DEV
AND FLOATING-POINT NUMBERS 21 Values can be converted to Float32 easily: julia> x = Float32(-1.5) -1.5f0 julia> typeof(x) Float32 Hexadecimal floating-point literals are also valid, but only as Float64 makes writing polynomial expressions much cleaner: julia> x = 3 3 julia> 2x^2 - 3x + 1 10 julia> 1.5x^2 - .5x + 1 13.0 It also makes writing exponential functions more elegant: julia> 2^2x 64 The with the equivalent E form. • The 32-bit floating-point literal expression 1.5f22 could be interpreted as the numeric literal 1.5 multiplied by the variable f22.CHAPTER 5. INTEGERS AND FLOATING-POINT NUMBERS0 码力 | 2058 页 | 7.45 MB | 3 月前3Julia 1.12.0 RC1
AND FLOATING-POINT NUMBERS 21 Values can be converted to Float32 easily: julia> x = Float32(-1.5) -1.5f0 julia> typeof(x) Float32 Hexadecimal floating-point literals are also valid, but only as Float64 makes writing polynomial expressions much cleaner: julia> x = 3 3 julia> 2x^2 - 3x + 1 10 julia> 1.5x^2 - .5x + 1 13.0 It also makes writing exponential functions more elegant: julia> 2^2x 64 The with the equivalent E form. • The 32-bit floating-point literal expression 1.5f22 could be interpreted as the numeric literal 1.5 multiplied by the variable f22.CHAPTER 5. INTEGERS AND FLOATING-POINT NUMBERS0 码力 | 2057 页 | 7.44 MB | 3 月前3Julia 1.12.0 Beta4
AND FLOATING-POINT NUMBERS 21 Values can be converted to Float32 easily: julia> x = Float32(-1.5) -1.5f0 julia> typeof(x) Float32 Hexadecimal floating-point literals are also valid, but only as Float64 makes writing polynomial expressions much cleaner: julia> x = 3 3 julia> 2x^2 - 3x + 1 10 julia> 1.5x^2 - .5x + 1 13.0 It also makes writing exponential functions more elegant: julia> 2^2x 64 The with the equivalent E form. • The 32-bit floating-point literal expression 1.5f22 could be interpreted as the numeric literal 1.5 multiplied by the variable f22.CHAPTER 5. INTEGERS AND FLOATING-POINT NUMBERS0 码力 | 2057 页 | 7.44 MB | 3 月前3Julia 1.12.0 Beta3
AND FLOATING-POINT NUMBERS 21 Values can be converted to Float32 easily: julia> x = Float32(-1.5) -1.5f0 julia> typeof(x) Float32 Hexadecimal floating-point literals are also valid, but only as Float64 makes writing polynomial expressions much cleaner: julia> x = 3 3 julia> 2x^2 - 3x + 1 10 julia> 1.5x^2 - .5x + 1 13.0 It also makes writing exponential functions more elegant: julia> 2^2x 64 The with the equivalent E form. • The 32-bit floating-point literal expression 1.5f22 could be interpreted as the numeric literal 1.5 multiplied by the variable f22.CHAPTER 5. INTEGERS AND FLOATING-POINT NUMBERS0 码力 | 2057 页 | 7.44 MB | 3 月前3julia 1.12.0 beta1
AND FLOATING-POINT NUMBERS 21 Values can be converted to Float32 easily: julia> x = Float32(-1.5) -1.5f0 julia> typeof(x) Float32 Hexadecimal floating-point literals are also valid, but only as Float64 makes writing polynomial expressions much cleaner: julia> x = 3 3 julia> 2x^2 - 3x + 1 10 julia> 1.5x^2 - .5x + 1 13.0 It also makes writing exponential functions more elegant: julia> 2^2x 64 The with the equivalent E form. • The 32-bit floating-point literal expression 1.5f22 could be interpreted as the numeric literal 1.5 multiplied by the variable f22.CHAPTER 5. INTEGERS AND FLOATING-POINT NUMBERS0 码力 | 2047 页 | 7.41 MB | 3 月前3
共 34 条
- 1
- 2
- 3
- 4