Int

  • Thread starter Thread starter André Almeida Maldonado
  • Start date Start date
A

André Almeida Maldonado

Hy guys, in VB6 to convert -6 to 6 I used the INT function.. How can I do it
in VB.NET???????

Thanks...
 
Do you mean you want the absolute value?? Cause Int should return the
integer of a number.

So
abs(-6) == 6
 
INT function is still there

Namespace: Microsoft.VisualBasic
Module: Conversion

Assembly: Microsoft Visual Basic .NET Runtime (in Microsoft.VisualBasic.dll)
 
* "André Almeida Maldonado said:
Hy guys, in VB6 to convert -6 to 6 I used the INT function.. How can I do it
in VB.NET???????

Are you sure? In VB6 'Int(-6)' returned -6. Or are you referring to
'Abs'?
 
Back
Top