Author Topic: To get a neg number  (Read 3717 times)

0 Members and 1 Guest are viewing this topic.

TimSpangler

  • Water Moccasin
  • Posts: 2010
  • CAD Naked!!
To get a neg number
« on: April 13, 2009, 02:56:02 PM »
I seem to be having a brain fart.  I want to turn a number negative  How do I do it??
ACA 2015 - Windows 7 Pro
All Comments and Content by TimSpangler, Copyright © 2016

Matt__W

  • Seagull
  • Posts: 12955
  • I like my water diluted.
Re: To get a neg number
« Reply #1 on: April 13, 2009, 02:56:43 PM »
I seem to be having a brain fart.  I want to turn a number negative  How do I do it??

Besides adding the little minus (-) sign in front of it??
Autodesk Expert Elite
Revit Subject Matter Expert (SME)
Owner/FAA sUAS Pilot @ http://skyviz.io

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: To get a neg number
« Reply #2 on: April 13, 2009, 02:58:51 PM »
I wanna know where the big minus sign is. :P
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

ronjonp

  • Needs a day job
  • Posts: 7529
Re: To get a neg number
« Reply #3 on: April 13, 2009, 02:59:50 PM »
(if (minusp n)n (* -1 n)) ?

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: To get a neg number
« Reply #4 on: April 13, 2009, 03:01:09 PM »
Psst, Ron, try it:

(- 42)
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

TimSpangler

  • Water Moccasin
  • Posts: 2010
  • CAD Naked!!
Re: To get a neg number
« Reply #5 on: April 13, 2009, 03:05:49 PM »
Psst, Ron, try it:

(- 42)
Damn, right in front of my face.

Forest meet trees, Trees meet forest........

Thanks MP
ACA 2015 - Windows 7 Pro
All Comments and Content by TimSpangler, Copyright © 2016

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: To get a neg number
« Reply #6 on: April 13, 2009, 03:06:38 PM »
Matt called it, I just put light on it. :)
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

TimSpangler

  • Water Moccasin
  • Posts: 2010
  • CAD Naked!!
Re: To get a neg number
« Reply #7 on: April 13, 2009, 03:08:08 PM »
.......and thanks to Matt........

Have you guys met forest and trees?   :roll:
ACA 2015 - Windows 7 Pro
All Comments and Content by TimSpangler, Copyright © 2016

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: To get a neg number
« Reply #8 on: April 13, 2009, 03:08:33 PM »
Dude I live in a van down by the river.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

TimSpangler

  • Water Moccasin
  • Posts: 2010
  • CAD Naked!!
Re: To get a neg number
« Reply #9 on: April 13, 2009, 03:09:37 PM »
So you've seen the trees many times, the world is you bathroom?  :lmao:
ACA 2015 - Windows 7 Pro
All Comments and Content by TimSpangler, Copyright © 2016

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: To get a neg number
« Reply #10 on: April 13, 2009, 03:11:09 PM »
Well if I were you I'd avoid that tree over there yonder.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

ronjonp

  • Needs a day job
  • Posts: 7529
Re: To get a neg number
« Reply #11 on: April 13, 2009, 03:13:05 PM »
Psst, Ron, try it:

(- 42)

Cool  8-) ....there is so much I don't know  :-D

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

TimSpangler

  • Water Moccasin
  • Posts: 2010
  • CAD Naked!!
Re: To get a neg number
« Reply #12 on: April 13, 2009, 03:14:01 PM »
Treading very lightly......Thanks for the heads up
ACA 2015 - Windows 7 Pro
All Comments and Content by TimSpangler, Copyright © 2016

TimSpangler

  • Water Moccasin
  • Posts: 2010
  • CAD Naked!!
Re: To get a neg number
« Reply #13 on: April 13, 2009, 03:14:53 PM »
Psst, Ron, try it:

(- 42)

Cool  8-) ....there is so much I don't know  :-D

Yeah, the more you know, the more you know you don't know......  :ugly:
ACA 2015 - Windows 7 Pro
All Comments and Content by TimSpangler, Copyright © 2016

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: To get a neg number
« Reply #14 on: April 13, 2009, 03:16:40 PM »
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

ronjonp

  • Needs a day job
  • Posts: 7529
Re: To get a neg number
« Reply #15 on: April 13, 2009, 03:23:51 PM »

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: To get a neg number
« Reply #16 on: April 13, 2009, 03:25:55 PM »
Anyone want a guarantee?

Code: [Select]
(-(abs num)) :evil:
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

David Bethel

  • Swamp Rat
  • Posts: 656
Re: To get a neg number
« Reply #17 on: April 13, 2009, 04:31:45 PM »
Or:

Code: [Select]
(min n (- n))
R12 Dos - A2K

Daniel J. Ellis

  • Swamp Rat
  • Posts: 811
Re: To get a neg number
« Reply #18 on: April 14, 2009, 03:32:43 AM »
Yeah, the more you know, the more you know you don't know......  :ugly:

Funilly enough, I remember Donald Rumsfeld being mocked for making the same point:

Quote
There are known knowns. These are things we know that we know. There are known unknowns. That is to say, there are things that we know we don't know. But there are also unknown unknowns. There are things we don't know we don't know.
Donald Rumsfeld
===
dJE