Thehex2dec
function issues a warning when input values are greater than or equal toflintmax
. In previous releases,hex2dec
did not issue this warning.
hex2dec
现在问题因为输入代表我的一个警告ntegers greater than or equal toflintmax
might not be represented exactly as double-precision floating-point values.
To convert values greater thanflintmax
exactly, consider one of these alternatives:
In place of scalar text inputs, use hexadecimal or binary literals representing the same values. When you write a value as a literal, MATLAB®stores it as an integer that represents the value exactly. For more information, see十六进制和二进制值.
To convert hexadecimal inputs greater thanflintmax
, you can use thesscanf
function with the%lx
operator. When you use%lx
, the converted values are integers that have theuint64
data type. These integers have enough storage to represent values greater thanflintmax
exactly.
.