1 Replies - 1001 Views - Last Post: 13 May 2014 - 06:43 AM Rate Topic: -----

#1 jameslind123  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 13-May 14

Print smallest when (2 ^ n) >= m

Posted 13 May 2014 - 01:34 AM

Private Sub Command1_Click()
Dim n As Integer, m As Integer

m = Text1.Text
If (2 ^ n) >= m Then
Round (n)
End If

Print n

End Sub



how to make this work?
Is This A Good Question/Topic? 0
  • +

Replies To: Print smallest when (2 ^ n) >= m

#2 astonecipher  Icon User is offline

  • Major DIC Head
  • member icon

Reputation: 766
  • View blog
  • Posts: 3,338
  • Joined: 03-December 12

Re: Print smallest when (2 ^ n) >= m

Posted 13 May 2014 - 06:43 AM

Fix it?

If 1 is greater then m
   Round 1
End if

Print 1


What were you expecting?

This post has been edited by astonecipher: 13 May 2014 - 06:46 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1