wispila
-
Total Posts
:
2
- Scores: 0
-
Reward points
:
0
- Joined: 7/14/2004
- Location: Finland
-
Status: offline
|
Help with double and integer values
Friday, August 13, 2004 12:59 AM
( permalink)
Hello, i'm new with ASP.NET but i have do some work with ASP. I have a problem when trying to convert Double values to Integer. I don't know, it might be easy to solve but i have been fighting with it hours and hours. Here is some of the code:
Dim dblKASum, dblKACount, ymin, ymax, dblValue as Double
Dim intValue as Integer
...
dblValue=cdbl(( ((dblKASum / dblKACount)-ymin)/(ymax-ymin) )*100)
...
g.FillRectangle(New linearGradientBrush(New point(1,1), New point(5,5), kyna,kyna), 610, 140-84, 10, intValue)
...
I tryed to use 'Cint' but it did not work here. I would really appreciate any help. Thanks in advance, Wispila
|
|
|
|
wispila
-
Total Posts
:
2
- Scores: 0
-
Reward points
:
0
- Joined: 7/14/2004
- Location: Finland
-
Status: offline
|
Re: Help with double and integer values
Sunday, August 15, 2004 6:54 PM
( permalink)
Hello, ok, maybe i can't convert Double values to Integer, but i find a solution to this problem. I used Single instead of Integer when formating variables. Like i said, i'm new with asp.net Wispila
|
|
|
|