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

Hello,

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
conversions:

  http://www.unidata.ucar.edu/software/udunits/

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")

Ciao,
Thomas


-- 
When C++ is your hammer, every problem looks like your thumb.

Attachment: udunits.rkt
Description: Binary data

_________________________________________________
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/users

Reply via email to