Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to convert a value to numeric?
Message
General information
Forum:
Internet
Category:
Active Server Page
Miscellaneous
Thread ID:
00392901
Message ID:
00392973
Views:
8
Use the CInt() function to typecast the variables. Something like this:

a = 10
b = 10
c = CInt(a) + CInt(b)

HTH

>I must sum 2 values in asp.
>maybe if
>a = 10
>b = 20
>When i Write a + b it returns 1020
>I want that its returns 30
>thanks
"It is an important and popular fact that things are not always what they seem. For instance, on the planet Earth, man had always assumed that he was more intelligent than dolphins because he had achieved so much -- the wheel, New York, wars and so on -- whilst all the dolphins had ever done was muck about in the water having a good time. But conversely, the dolphins had always believed that they were far more intelligent than man -- for precisely the same reasons." - Douglas Adams
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform