1. ## fraction in kword

Registered forum members do not see this ad.

This may be a noob question but, I was wondering if it is possible (with relative ease) to use a fraction as a kword or do I have to go with the decimal equivalents.

2. Originally Posted by KrazyMann225
This may be a noob question but, I was wondering if it is possible (with relative ease) to use a fraction as a kword or do I have to go with the decimal equivalents.

Here's a simple example (no peeking!):
Code:
```

(initget 1 "1\\4\" 1\\2\" 3\\4\"")
(setq opt (getkword "\nEnter option [1\\4\"/1\\2\"/3\\4\"]: "))
(print opt)```

3. Ohh, BTW - Thanks for stealing my signature quote (without attribution), dude.

CT_thief.png

4. well, i figured it out just before I discovered that you responded back all i needed to do was double backslash, i thought i had tried it but i think i was mistankly doing double forward slashs, for reasons inknow to me....im going to blame it on lack of sleep. But **** for \$%#@ and giggles the winning code (for me) was :

Code:
```  (initget "Custom 1\\8 1\\4 3\\8 1\\2 3\\4 1 1.25 1.5 2 2.5 3 3.5 4 5 6 8 10 12")
(setq Nominal (getreal "Enter new nominal pipe diameter or [Custom/1\\8/1\\4/3\\8/1\\2/3\\4/1/1.25/1.5/2/2.5/3/3.5/4/5/6/8/10/12]: "))```

5. well that's hilarious, I got that quote from someone off facebook! the quote is now redacted. you can now put down the bat.......put down the bat........oh god, hel.

6. Originally Posted by KrazyMann225
well that's hilarious, I got that quote from someone off facebook! the quote is now redacted. you can now put down the bat.......put down the bat........oh god, hel.
I'm not even on Facebook, so I'm not sure who, how, why, etc... I'll have to investimagate.

There's no need to redact; I'm glad you like the quote.

I don't have a problem with your (or anyone else's) using it, just throw the attribution on there. It's one of the very few original thoughts I've ever had. You wouldn't use someone elses routine without doing the same.

Cheers!

7. well in that case, thanks for the assistance too.

8. Originally Posted by KrazyMann225
well in that case, thanks for the assistance too.
You're very welcome; I'm glad I was able to help.

9. Awesome! You made my day, KrazyMann225.

CT_thief.fixed.jpg

10. Registered forum members do not see this ad.

LoL np, it's a good quote and reflects many of the day to day problems of a consultant eng!

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts