Euphoria Ticket #988: 8.13.1.12 set_decimal_mark needs clarification, working demo

Explanation is completely unclear that the decimal mark should (usually) be either a dot or a comma in single quotes. While integers 44 and 46 are the equivalent, that is not helpful to newcomers to Euphoria.

include std/convert.e  
  
atom n1 = to_number("12,345.95")  
? n1  
set_decimal_mark(',')  
atom n2 = to_number("12.345,95")  
? n2  

Also, needs results to be shown!

Details

Type: Bug Report Severity: Normal Category: Documentation
Assigned To: euphoric Status: Fixed Reported Release:
Fixed in SVN #: View VCS: none Milestone: 4.1.0

Search



Quick Links

User menu

Not signed in.

Misc Menu