fixed-point numeric object - how to display full number (64bit embedded.fi without double rounding on 52bits)

1 回表示 (過去 30 日間)
number 8890785533228639531
hex 7B626A564A46652B
bin 111101101100010011010100101011001001010010001100110010100101011
A=int64(8890785533228639531)
%create a numeric type with 63 Fraction Length F64 = numerictype(true, 64, 63); FA=reinterpretcast(A, F64); %there is a error rounding on 52bit (double) when i want to display stored number in int,hex or %bin
F64.int
ans
=8890785533228639232
F64.hex
ans =
7b626a564a466400
F64.bin
ans =
0111101101100010011010100101011001001010010001100110010000000000
Is possible display full 64bit number without rounding ?

回答 (0 件)

カテゴリ

Help Center および File ExchangeFixed-Point Designer についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by