Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Dividing while showing remainders

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Splizes
Grandmaster Cheater Supreme
Reputation: 0

Joined: 21 Jun 2006
Posts: 1944
Location: Florida

PostPosted: Sun Aug 26, 2007 11:45 am    Post subject: Dividing while showing remainders Reply with quote


I made this for my mom to check my sisters math homework Very Happy
Code:

Option Explicit
Dim a As Double
Dim sd As Double
Dim sc As Double

Private Function RoundOff(ByVal value As Double, ByVal digits As Integer) As Double
Dim move As Double

    move = 10 ^ digits
    RoundOff = CInt(value * move) / move
End Function

Private Sub Command1_Click()
On Error Resume Next

sc = Text1.Text / Text2.Text
sd = RoundOff(CSng(sc), CInt(0))

If sd > sc Then
sd = sd - 1
End If

a = Text1.Text Mod Text2.Text
Label1.Caption = sd & " r " & a
Command2.Enabled = True
net:
Resume Next
End Sub

Private Sub Command2_Click()
On Error Resume Next
Text3.Text = sd & " * " & Text2.Text & " = " & Val(Text2.Text * sd)
Text3.SetFocus
SendKeys Text3.Text & "{Enter}"
Text3.Text = Val(Text2.Text * sd) & " + " & a & " = " & Val(Text2.Text * sd + a)
End Sub


Private Sub Text1_Click()
Text1.Text = ""
End Sub


Private Sub Text2_Click()
Text2.Text = ""
End Sub


Project files attached



The Extension 'rar' was deactivated by an board admin, therefore this Attachment is not displayed.

Back to top
View user's profile Send private message
assaf84
Expert Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 238

PostPosted: Sun Aug 26, 2007 11:51 am    Post subject: Reply with quote

Lol Very Happy
Looks nice (and funny XD)
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Sun Aug 26, 2007 12:04 pm    Post subject: Reply with quote

Oh dear, VB
Back to top
View user's profile Send private message MSN Messenger
Splizes
Grandmaster Cheater Supreme
Reputation: 0

Joined: 21 Jun 2006
Posts: 1944
Location: Florida

PostPosted: Sun Aug 26, 2007 12:05 pm    Post subject: Reply with quote

noz3001 wrote:
Oh dear, VB

Lol, noz want me to code it in c++ for j00? Very Happy
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Sun Aug 26, 2007 12:08 pm    Post subject: Reply with quote

SnowFox wrote:
noz3001 wrote:
Oh dear, VB

Lol, noz want me to code it in c++ for j00? Very Happy


Anything other than VD.
Back to top
View user's profile Send private message MSN Messenger
Splizes
Grandmaster Cheater Supreme
Reputation: 0

Joined: 21 Jun 2006
Posts: 1944
Location: Florida

PostPosted: Sun Aug 26, 2007 12:12 pm    Post subject: Reply with quote

noz3001 wrote:
SnowFox wrote:
noz3001 wrote:
Oh dear, VB

Lol, noz want me to code it in c++ for j00? Very Happy


Anything other than VD.

Hmm VD... i dont have a vaginal disease you sicko.
and ill code it laters Very Happy
Back to top
View user's profile Send private message
Losplagos
Expert Cheater
Reputation: 0

Joined: 21 Mar 2006
Posts: 172
Location: Knee deep in a c++ book

PostPosted: Sun Aug 26, 2007 12:18 pm    Post subject: Reply with quote

I like c++ more than vb still a nice program though if your still in school doing that. And Ps penis does go in eye!!!
_________________

Earthbound = 31337
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites