Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Curious if I am thinking about this right.
#11
Two!
Code: (Select All)
Input "Enter a Number to convert , (comma) 1 to convert to mm from inches or ,(comma) any other for inches "; num, op%
Print _IIf(op% = 1, num * 25.4, num / 25.4) ' 25.4 mm per inch

This takes advantage of being able to assign multiple input values to variables.

"I'm lazy. I like to program in a manner that supports me being as lazy as possible. Big Grin"

I am that way with typing, unfortunately NOT with Editing! Big Grin

Yeah 2 liner to show both conversions good too! Saves on variables +1
  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:18 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: 1 Guest(s)