NikhilS / vb2js

Automatically exported from code.google.com/p/vb2js
2 stars 3 forks source link

Integer division operator(a \ b) is not converted into equivalent Javascript operator parseInt(a / b) #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Enter the following VB script code to convert

   Dim a = 10
   a = 10 \ 3

3. Actual JS :  var a = 10;
                     a = 10 / 3;

  Expected JS : var a = 10
                        a = parseInt(10 / 3)

Note : 10 \ 3 =  3  but 10 / 3 = 3.33333

Original issue reported on code.google.com by nikhilsi...@google.com on 16 May 2010 at 6:03