Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Curious if I am thinking about this right.
#9
Half again (I probably should have tested this)
Code: (Select All)
Input "Enter a Number to convert "; num
Input "Enter 1 for conversion to mm from inches any other does vice versa "; op%
Print _IIf(op% = 1, num * 25.4, num / 25.4) ' 25.4 mm per inch

Are the Input questions not explanatory comment enough for the variables?

The beauty of Basic is that you don't have to Dim plain variables.

EDIT: a comment added to explain where the 25.4 number is coming from
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply


Messages In This Thread
RE: Curious if I am thinking about this right. - by bplus - 01-19-2025, 05:08 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  draw command curious behavior James D Jarvis 5 1,230 08-04-2022, 02:24 PM
Last Post: TempodiBasic

Forum Jump:


Users browsing this thread: