kfl / mosml

Moscow ML is a light-weight implementation of Standard ML (SML), a strict functional language widely used in teaching and research.
http://mosml.org
341 stars 42 forks source link

PackRealLittle #63

Closed athas closed 3 years ago

athas commented 3 years ago

It would be nice to have PackRealLittle as documented here: https://smlfamily.github.io/Basis/pack-float.html

Probably needs #62 to be implemented first.

PackReal32Little and PackReal64Little would also be useful, except that MosML does not have Real32.

kfl commented 3 years ago

Moscow ML almost have the functionality that you are asking for in the Mosml module. For example, the Mosml.doubleVec function converts a real to an eight-element vector of Word8.word but in big-endian.