Frage

The online documentation promises this

  probe to-money 123
  $123.00

http://www.rebol.com/r3/docs/datatypes/money.html

I get this

  probe to-money 123
  $123
War es hilfreich?

Lösung

The documentation you see is a copy of R2 documentation. It still does not reflect the current state in R3.

In R3 you can have both $123 as well as $123.00, have you tried?

This looks like a more accurate documentation:

http://www.rebol.net/wiki/Money

Andere Tipps

>> round/to to money! 123 $.01
== $123.00
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top