Files
OmagCUT/Utility.vb
T
Dario Sassi 05bbe668a6 OmagCut 1.6i7 :
- prime modifiche per grezzo, nesting e lavorazioni.
2015-09-18 13:28:13 +00:00

17 lines
457 B
VB.net

Imports System.Globalization
Imports EgtUILib
Module Utility
Friend Function DoubleToString(ByVal dVal As Double, ByVal nNumDec As UInteger) As String
Dim sFormat As String = "F" + nNumDec.ToString()
Dim sVal As String = dVal.ToString(sFormat, CultureInfo.InvariantCulture)
If nNumDec > 0 Then
Return sVal.TrimEnd("0".ToCharArray())
Else
Return sVal
End If
End Function
End Module