This Mac mini was a bit of a bargain. £435 from eBay 4 years ago. The previous owner hadsn't deleted all his data from it, only his user account. All his apps were still on it, and some rather risque pics of his wife ... or mistress!
As for OpenCore Legacy Patcher ... I installed it on a 2009 model MacBook given to me by a friend. The MacBook currently runs macOS Ventura, but is now out of action since the offical Apple charger is goosed due to minor cable damage.
If that old Macbook comes out of retirement, it'll probably end up with Linux.
Question
GSDragoon
So lets say I have a number, 16.95. I want it truncated to one decimal place, but NO ROUNDING. I want 16.9 for the final result.
So far I'm using:
Dim first As Int32 = Math.Floor(tp) Dim second As Int32 = Int((tp - first) * 10) Dim TPs As String = first & "." & second
It works for the following example, but not every time. I think only when there's already one decimal place. Another example:
tp = 16.7
first = 16
tp - first = 6.9999885559082 <---- do not understand
TP is a single, if that matters. I'm having a problem getting that one digit in the tenths place.
Link to comment
https://www.neowin.net/forum/topic/643336-vbnettruncate-without-rounding/Share on other sites
6 answers to this question
Recommended Posts