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
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
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
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
······@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
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.
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
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.
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
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 #?
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
* 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>
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
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