julia数据分析
To find the maximum value that a data type can hold, we use the typemax() function – it accepts a data type and returns its maximum value.
为了找到数据类型可以容纳的最大值,我们使用typemax()函数–它接受数据类型并返回其最大值。
Example:
例:
# finding the maximum values of the various
# data types
print("Max value of Int8: ")
println(typemax(Int8))
print("Max value of UInt8: ")
println(typemax(UInt8))
print("Max value of Int16: ")
println(typemax(Int16))
print("Max value of UInt16: ")
println(typemax(UInt16))
print("Max value of Int32: ")
println(typemax(Int32))
print("Max value of UInt32: ")
println(typemax(UInt32))
print("Max value of Int64: ")
println(typemax(Int64))
print("Max value of UInt64: ")
println(typemax(UInt64))
print("M