We're updating the issue view to help you get more done. 

UNUM_MAX_FRACTION_DIGITS not respected for UNUM_SPELLOUT

Description

Filed per Chris Kane:
The attached program prints the value of 3.1415926536 using various styles, first with UNUM_MIN_FRACTION_DIGITS & UNUM_MAX_FRACTION_DIGITS set to 0, then with them set to 1. Here are the results:

UNUM_DECIMAL: '3'
UNUM_CURRENCY: '$3'
UNUM_PERCENT: '314%'
UNUM_SCIENTIFIC: '3.1415926536E0'
UNUM_SPELLOUT: 'three point one four one five nine two six five three six'
UNUM_DECIMAL: '3.1'
UNUM_CURRENCY: '$3.1'
UNUM_PERCENT: '314.2%'
UNUM_SCIENTIFIC: '3.0E0'
UNUM_SPELLOUT: 'three point one four one five nine two six five three six'

For the FRACTION_DIGITS==0 case, UNUM_SCIENTIFIC & UNUM_SPELLOUT seem to ignore the FRACTION_DIGITS setting.

For the FRACTION_DIGITS==1 case, UNUM_SCIENTIFIC seems to ignore the FRACTION_DIGITS setting, and UNUM_SCIENTIFIC has a rounding problem.

Status

Assignee

George Rhoten

Reporter

Peter Edberg

Labels

None

Reviewer

None

Time Needed

None

Start date

None

Components

Priority

medium