Remove Decimal part from number
5 次查看(过去 30 天)
显示 更早的评论
i have a series of 100 arrays which contain about 4-5 digits number. for example, x=9588
i want x/256=37.453, i want to remove the .453 leaving only 37. then 37 * 256 = 9472, then 9588-9472=116,
i want the final answer to be like 116.
i have tried, floor, round and fix.but still not getting the answer i want. is it anything to do with the integer class? because all the number of array in int32. please help me. thank you
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!