Help with double and integer values

Author Message
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)
0
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


 
#1
    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)
    0
    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
     
    #2

      Online Bookmarks Sharing: Share/Bookmark

      Jump to:

      Current active users

      There are 0 members and 1 guests.

      Icon Legend and Permission

      • New Messages
      • No New Messages
      • Hot Topic w/ New Messages
      • Hot Topic w/o New Messages
      • Locked w/ New Messages
      • Locked w/o New Messages
      • Read Message
      • Post New Thread
      • Reply to message
      • Post New Poll
      • Submit Vote
      • Post reward post
      • Delete my own posts
      • Delete my own threads
      • Rate post

      2000-2012 ASPPlayground.NET Forum Version 3.9