08-16-2022
10:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
08-16-2022
10:17 AM
It might be giving an error because the value is to long. Try a rounding function
Dim extents_length As String = Round(SheetMetal.FlatExtentsLength, 3)
'or
roundedClosest = Round(Round(SheetMetal.FlatExtentsLength,4) / 0.0625) * 0.0625 & " in" MessageBox.Show(roundedClosest)