Rank: 5444 based on 1 downloads (last 30 days) and 1 file submitted
photo

Kobi Kai Calev

E-mail

Personal Profile:
Professional Interests:
signal processing

 

Watch this Author's files

 

Files Posted by Kobi Kai
Updated   File Tags Downloads
(last 30 days)
Comments Rating
04 Sep 2008 Int2Hex wrapper for dec2hex, to handle 64bit + signed numbers via typecast Author: Kobi Kai Calev hex, data import, dec2hex, data export, binary, conversion 1 4
Comments and Ratings on Kobi Kai's Files View all
Updated File Comment by Comments Rating
08 Oct 2008 Int2Hex wrapper for dec2hex, to handle 64bit + signed numbers via typecast Author: Kobi Kai Calev Andolina, Rob

sorry, I meant to write decimal/fixed point numbers not floating point

08 Oct 2008 Int2Hex wrapper for dec2hex, to handle 64bit + signed numbers via typecast Author: Kobi Kai Calev Andolina, Rob

Could you please give an example of the syntax to call this function?

For example, how could I convert the decimal/floating point numbers:

15
-15
1056546.1498564
-975465154.168784

Into a hexadecimal format. This would be very helpful to me in 64bits, but would really prefer 72bits right now. Is there anyway to generate a 72bit result for a hexadecimal number that would then be 18 characters long?

08 Sep 2008 Int2Hex wrapper for dec2hex, to handle 64bit + signed numbers via typecast Author: Kobi Kai Calev Tursa, James

Response to comment:

dec2hex(double(int64_var)) doesn't work because it loses precision. You won't get all of the bits of the int64 or uint64 represented in the result.

05 Sep 2008 Int2Hex wrapper for dec2hex, to handle 64bit + signed numbers via typecast Author: Kobi Kai Calev (us) Schwarz, Urs

why not simply

dec2hex(double(int64_var))

us

Top Tags Applied by Kobi Kai
binary, conversion, data export, data import, dec2hex
Files Tagged by Kobi Kai
Updated   File Tags Downloads
(last 30 days)
Comments Rating
04 Sep 2008 Int2Hex wrapper for dec2hex, to handle 64bit + signed numbers via typecast Author: Kobi Kai Calev hex, data import, dec2hex, data export, binary, conversion 1 4

Contact us at files@mathworks.com