Hai ,
This is a bit weird for me.It may be that i got it wrong, but i request you to respond please.
All i need to do is add two double values
Dim a as double =324.0
Dim b as double=0.1
Dim c ad double
c=a+b
i expected the output to be c= 324.1 but i am getting 324.1015625, i tried using decimal datatype also but same problem.
i am inserting c value in sql server 2005 db there i am getting c value as 324.1015625, but in the code i am getting 324.1, why is this?,the datatype field for c in db is float.
please give me the vb.net code handle this.
This is a bit weird for me.It may be that i got it wrong, but i request you to respond please.
All i need to do is add two double values
Dim a as double =324.0
Dim b as double=0.1
Dim c ad double
c=a+b
i expected the output to be c= 324.1 but i am getting 324.1015625, i tried using decimal datatype also but same problem.
i am inserting c value in sql server 2005 db there i am getting c value as 324.1015625, but in the code i am getting 324.1, why is this?,the datatype field for c in db is float.
please give me the vb.net code handle this.
Comment