From: ······@gmail.com
Subject: Alternative to (floor (/ num denom))???
Date: 
Message-ID: <1190021255.524903.164990@d55g2000hsg.googlegroups.com>
seeing as lisp will evaluate something like
(/ 1 8) as 1/8 => is there a better way to get the floor of that AKA
the quotient of (/ 1 8) natively
(without another library)

Thanks!
-JW... newbie but learning

From: Tayssir John Gabbour
Subject: Re: Alternative to (floor (/ num denom))???
Date: 
Message-ID: <1190021866.255401.137630@y42g2000hsy.googlegroups.com>
On Sep 17, 11:27 am, ······@gmail.com wrote:
> seeing as lisp will evaluate something like
> (/ 1 8) as 1/8 => is there a better way to get the floor of that AKA
> the quotient of (/ 1 8) natively

Excuse me if I'm being dense, but what is the expected output of the
function you want, when given 1/8?

I suspect you want something like the following?
(float 1/8)
=> 0.125

(float 1/8 1.0d0)
=> 0.125D0

http://www.lisp.org/HyperSpec/Body/fun_float.html


Good luck,
Tayssir
From: ············@gmail.com
Subject: Re: Alternative to (floor (/ num denom))???
Date: 
Message-ID: <1190048887.783488.326800@w3g2000hsg.googlegroups.com>
On Sep 17, 4:27 am, ······@gmail.com wrote:
> seeing as lisp will evaluate something like
> (/ 1 8) as 1/8 => is there a better way to get the floor of that AKA
> the quotient of (/ 1 8) natively
> (without another library)
>
> Thanks!
> -JW... newbie but learning

Check out the cl hyperspec numbers dictionary.  It does sound like
function floor is exactly what you want.

http://www.lisp.org/HyperSpec/FrontMatter/Chapter-Index.html
From: ······@gmail.com
Subject: Re: Alternative to (floor (/ num denom))???
Date: 
Message-ID: <1190067379.512889.39270@d55g2000hsg.googlegroups.com>
floor is indeed what I'm looking for - never knew (or read about) it
took more than 1 argument - thanks all.


On Sep 17, 10:08 am, ·············@gmail.com" <············@gmail.com>
wrote:
> On Sep 17, 4:27 am, ······@gmail.com wrote:
>
> > seeing as lisp will evaluate something like
> > (/ 1 8) as 1/8 => is there a better way to get the floor of that AKA
> > the quotient of (/ 1 8) natively
> > (without another library)
>
> > Thanks!
> > -JW... newbie but learning
>
> Check out the cl hyperspec numbers dictionary.  It does sound like
> function floor is exactly what you want.
>
> http://www.lisp.org/HyperSpec/FrontMatter/Chapter-Index.html
From: Ken Tilton
Subject: Re: Alternative to (floor (/ num denom))???
Date: 
Message-ID: <7_GHi.377$Fe6.46@newsfe12.lga>
······@gmail.com wrote:
> floor is indeed what I'm looking for - never knew (or read about) it
> took more than 1 argument - thanks all.

Don't thank them. They gave you a fish when they could have taught you 
to fish. But then you would not need them. These bums want you hooked on 
their benevolence. Apropos nothing in particular, the Yanks lead in the 
top of the ninth. Look what you said: "is there a better way to get the 
floor of that", so with the aproposriate meta-help you could have found 
it on your own in about two seconds, since you were looking to get the 
"floor". Apropso this, I hit the wrong button the elevator and missed my 
"fllor". Instead someone wants you to memorize the CLHS dictionary on 
numbers. How apropos! That will totally slow you down as they charge 
ahead with their competitive products and aproposriate your market.

hth,kt

-- 
http://www.theoryyalgebra.com/

"We are what we pretend to be." -Kurt Vonnegut
From: Raffael Cavallaro
Subject: Re: Alternative to (floor (/ num denom))???
Date: 
Message-ID: <2007091800423816807-raffaelcavallaro@pasdespamsilvousplaitmaccom>
On 2007-09-17 22:44:14 -0400, Ken Tilton <···········@optonline.net> said:

> How apropos! That will totally slow you down as they charge ahead with 
> their competitive products and aproposriate your market.

Dude, you have to cut back on the ephedra.
From: Ken Tilton
Subject: Re: Alternative to (floor (/ num denom))???
Date: 
Message-ID: <_9PHi.406$Fe6.321@newsfe12.lga>
Raffael Cavallaro wrote:
> On 2007-09-17 22:44:14 -0400, Ken Tilton <···········@optonline.net> said:
> 
>> How apropos! That will totally slow you down as they charge ahead with 
>> their competitive products and aproposriate your market.
> 
> 
> Dude, you have to cut back on the ephedra.
> 

Oh, be quiet and help the OP, fer chrissake. You insecure types are 
always trying to keep the good stuff to yourselves. Being more generous, 
I suspect you do not even realize what I am talking about. Being less 
generous, this group seems no more helpful than robotic answerbots, 
always answering questions literally instead of thinking about how to 
help another sentient being, suggesting you are not. (Apropos "THIS"), 
could you look to see if you have an AC power cord running from your 
foot to the surge protector?

kenny

-- 
http://www.theoryyalgebra.com/

"We are what we pretend to be." -Kurt Vonnegut
From: Raffael Cavallaro
Subject: Re: Alternative to (floor (/ num denom))???
Date: 
Message-ID: <2007091810590516807-raffaelcavallaro@pasdespamsilvousplaitmaccom>
On 2007-09-18 08:03:01 -0400, Ken Tilton <···········@optonline.net> said:

> (Apropos "THIS"), could you look to see if you have an AC power cord 
> running from your foot to the surge protector?

Possible Response:
--------------------
Yes / No;

Or what?;

Go away;

Please come back later;

Fuck you, asshole;

How do you stop
  a charging Terminator?  <==== [Selected Response]

Fuck you;
--------------------


;^)


Hint #1: The correct answer is not "Take away his AC power cord."

Hint #2: Does a hound have Buddha-nature?


P.S. just for the record, even if it wasn't very clear, my ephedra post 
was laughing with you, not at you. You're one of my favorite people in 
c.l.l. Kenny - no need to be defensive. Release the hounds if you must 
though - I could probably use the exercise.

P.P.S. the OP's problem was *not* that he was unaware that floor 
existed, but rather that he was unaware that it took 2 args, so 
(apropos "floor") would not have helped him unless his implementation's 
apropos provided the arity of defined functions - sbcl and openmcl for 
example don't.
From: Ken Tilton
Subject: Re: Alternative to (floor (/ num denom))???
Date: 
Message-ID: <ZUSHi.31$Sf2.29@newsfe12.lga>
Raffael Cavallaro wrote:
> On 2007-09-18 08:03:01 -0400, Ken Tilton <···········@optonline.net> said:
> 
>> (Apropos "THIS"), could you look to see if you have an AC power cord 
>> running from your foot to the surge protector?
> 
> 
> Possible Response:
> --------------------
> Yes / No;
> 
> Or what?;
> 
> Go away;
> 
> Please come back later;
> 
> Fuck you, asshole;
> 
> How do you stop
>  a charging Terminator?  <==== [Selected Response]
> 
> Fuck you;
> --------------------
> 
> 
> ;^)
> 
> 
> Hint #1: The correct answer is not "Take away his AC power cord."
> 
> Hint #2: Does a hound have Buddha-nature?
> 
> 
> P.S. just for the record, even if it wasn't very clear, my ephedra post 
> was laughing with you, not at you.\

I knew that, just wanted to keep the energy level high. :)

> You're one of my favorite people in 
> c.l.l. Kenny - no need to be defensive. Release the hounds if you must 
> though - I could probably use the exercise.
> 
> P.P.S. the OP's problem was *not* that he was unaware that floor 
> existed,...

Ah, I just read the message where floor was used as NL, did not notice 
the floor form in the subject.

Now could someone get this frickin dog off me?

kenny


-- 
http://www.theoryyalgebra.com/

"We are what we pretend to be." -Kurt Vonnegut
From: Bob Felts
Subject: Re: Alternative to (floor (/ num denom))???
Date: 
Message-ID: <1i4n3ft.2kgaqf3ennamN%wrf3@stablecross.com>
Ken Tilton <···········@optonline.net> wrote:

> Raffael Cavallaro wrote:
> > On 2007-09-18 08:03:01 -0400, Ken Tilton <···········@optonline.net> said:
[...]

> > 
> > P.P.S. the OP's problem was *not* that he was unaware that floor 
> > existed,...
> 
> Ah, I just read the message where floor was used as NL, did not notice
> the floor form in the subject.
> 
> Now could someone get this frickin dog off me?
> 

Want Michael Vick's phone #?
From: Ken Tilton
Subject: Re: Alternative to (floor (/ num denom))???
Date: 
Message-ID: <7GVHi.58$Sf2.26@newsfe12.lga>
Bob Felts wrote:
> Ken Tilton <···········@optonline.net> wrote:
> 
> 
>>Raffael Cavallaro wrote:
>>
>>>On 2007-09-18 08:03:01 -0400, Ken Tilton <···········@optonline.net> said:
> 
> [...]
> 
> 
>>>P.P.S. the OP's problem was *not* that he was unaware that floor 
>>>existed,...
>>
>>Ah, I just read the message where floor was used as NL, did not notice
>>the floor form in the subject.
>>
>>Now could someone get this frickin dog off me?
>>
> 
> 
> Want Michael Vick's phone #?
> 

Good thinking. OJ has more firepower, but he's not returning my calls 
for some reason.

kenny

-- 
http://www.theoryyalgebra.com/

"We are what we pretend to be." -Kurt Vonnegut
From: Madhu
Subject: Re: Alternative to (floor (/ num denom))???
Date: 
Message-ID: <m3d4wg9s20.fsf@robolove.meer.net>
* Raffael Cavallaro in <····································@pasdespamsilvousplaitmaccom> :

| On 2007-09-17 22:44:14 -0400, Ken Tilton <···········@optonline.net> said:
|
|> How apropos! That will totally slow you down as they charge ahead
|> with their competitive products and aproposriate your market.
|
| Dude, you have to cut back on the ephedra.

Can't you tell a master by the sweep of his brush? 

For an earlier example of this style see
<····················@newsfe12.lga>
<url:http://groups.google.com/group/comp.lang.lisp/msg/fb72505935b2c3b9>
From: Leandro Rios
Subject: Re: Alternative to (floor (/ num denom))???
Date: 
Message-ID: <46efd923$0$1344$834e42db@reader.greatnowhere.com>
Madhu escribi�:
> * Raffael Cavallaro in <····································@pasdespamsilvousplaitmaccom> :
> 
> | On 2007-09-17 22:44:14 -0400, Ken Tilton <···········@optonline.net> said:
> |
> |> How apropos! That will totally slow you down as they charge ahead
> |> with their competitive products and aproposriate your market.
> |
> | Dude, you have to cut back on the ephedra.
> 
> Can't you tell a master by the sweep of his brush? 
> 
> For an earlier example of this style see
> <····················@newsfe12.lga>
> <url:http://groups.google.com/group/comp.lang.lisp/msg/fb72505935b2c3b9>

I've been laughing at this for the last fifteen minutes. I don't know 
how to stop. Please someone come over and shoot me.

Leandro
From: Rainer Joswig
Subject: Re: Alternative to (floor (/ num denom))???
Date: 
Message-ID: <joswig-B1695E.11340917092007@news-europe.giganews.com>
In article <························@d55g2000hsg.googlegroups.com>,
 ······@gmail.com wrote:

> seeing as lisp will evaluate something like
> (/ 1 8) as 1/8 => is there a better way to get the floor of that AKA
> the quotient of (/ 1 8) natively
> (without another library)
> 
> Thanks!
> -JW... newbie but learning

(floor 1 8) maybe?

? (floor 1 8)
0
1

-- 
http://lispm.dyndns.org