Thanks for the explanation. I see how this is not a typed-specific
problem (indeed, it is probably a Good Thing that TR helps us be
careful about this distinction when it matters).
At this point, I'm still left wondering if Single-Flonums are good for
anything, but I can imagine that they are good
For the record, I've always just defined my own modulo when I need it
for floats:
; A modulo operator for floats!
(define (float-modulo p q)
(- p (* q (truncate (/ p q)
It doesn't properly handle negative numbers though.
David Van Horn writes:
> On 9/14/12 3:36 PM, Becca MacKenzie wrote:
At Fri, 14 Sep 2012 23:45:43 -0500,
Robby Findler wrote:
> The original message in this thread suggests that there is a type
> Single-Flonum and that it is making Neil wrangle his code to be
> careful about it.
Right, TR supports `Single-Flonum's, but not `f32vector's.
Part of the complexity in N
On 9/14/12 3:36 PM, Becca MacKenzie wrote:
Hello!
So a friend of mine just started learning Racket and was wondering if
there's a particular reason why the modulo function in racket only takes
in integers? He wrote his own mod function to take in other things but
he was just wondering what the re
4 matches
Mail list logo