[racket] Units/measures library

From: Thomas Chust (chust at web.de)
Date: Thu Nov 17 09:45:38 EST 2011

2011/11/17 José Lopes <jose.lopes at ist.utl.pt>:
> [...]
> Is there a units/measures library with metres (m), kilometres (km)
> and so on?
> [...]


while I don't know of such a project implemented in Racket, I use this
C library sometimes, which does a decent job for unit parsing and


You could control it easily through the Racket FFI, an example module
is attached to this mail, which can be used like this:

  (require "udunits.rkt")
  (convert-units 1.23 "m/s" "knots")


When C++ is your hammer, every problem looks like your thumb.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: udunits.rkt
Type: application/octet-stream
Size: 2534 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20111117/aad0bd6f/attachment.obj>

Posted on the users mailing list.