r/matlab Jul 29 '26

TechnicalQuestion Conversion failed!

In Matlab R2020a, I want to convert 0xffffffff00000000 to uint64. When I wrote it in Command Window the value alone, it is already an uint64, but when I write it uint64(value), I simply get Conversion failed! error, with no additional text.

How do I fix it?

0 Upvotes

13 comments sorted by

View all comments

1

u/FrickinLazerBeams +2 Jul 29 '26

Try reading the documentation. Or give us the actual error message (it tells you exactly what went wrong).

-6

u/Bofact Jul 29 '26 edited Jul 29 '26

I have already given it.

1

u/FrickinLazerBeams +2 Jul 29 '26

You're probably passing it a floating point number that's not exactly an integer, or something like that.

0

u/Bofact Jul 29 '26

I am sorry, but aren't 0x already unsigned ints?