Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Visual Basic only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
Visual Basic
Int in VB6
Int in VB6
Collapse
This topic is closed.
X
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Bo
#1
Int in VB6
Jul 17 '05, 09:19 PM
Hi
Dim A
Dim B
A=25
B=Int(A)
B became 24
Why ??
/Bo
jamie
#2
Jul 17 '05, 09:19 PM
Re: Int in VB6
Bo wrote:[color=blue]
> Hi
> Dim A
> Dim B
> A=25
> B=Int(A)
>
> B became 24
>
> Why ??
> /Bo[/color]
B was 25 for me using your code
Try the following:
Dim A As Integer
Dim B As Integer
A = 25
B = CInt(A)
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment