วิกิพีเดีย
คุยเรื่องมอดูล:ConvertNumeric/testcases
31 การทดสอบยังผิดพลาด
ข้อความ | ที่คาดหวัง | ที่ได้รับ | |
---|---|---|---|
ผ่าน | {{#invoke:ConvertNumeric|decToHex|10 20 40 1024 78912345|minlength=4}} | 000A 0014 0028 0400 4B41B59 | 000A 0014 0028 0400 4B41B59 |
ข้อความ | ที่คาดหวัง | ที่ได้รับ | |
---|---|---|---|
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |0}} | zero | zero |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |1}} | one | one |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english | 1 }} | one | one |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |1 | case=u}} | One | One |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |1 | case=U}} | One | One |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |-1}} | negative one | negative one |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |-1 | negative=minus}} | minus one | minus one |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |70}} | seventy | seventy |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |42}} | forty-two | forty-two |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |123}} | one hundred and twenty-three | one hundred and twenty-three |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |123 | sp=us}} | one hundred twenty-three | one hundred twenty-three |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |123 | adj=on}} | one-hundred-and-twenty-three | one-hundred-and-twenty-three |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |1050}} | one thousand and fifty | one thousand and fifty |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |1050 | sp=us}} | one thousand fifty | one thousand fifty |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |0.25}} | zero point two five | zero point two five |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |.25}} | zero point two five | zero point two five |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |0 | ord=on}} | zeroth | zeroth |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |33 | ord=on}} | thirty-third | thirty-third |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |40 | ord=on}} | fortieth | fortieth |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |5000000000 | ord=on}} | five billionth | five billionth |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |0 | pl=on}} | zeros | zeros |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |76 | pl=on}} | seventy-sixes | seventy-sixes |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |1000000000000000000000000000001}} | one nonillion and one | one nonillion and one |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |1.23E3}} | one thousand two hundred and thirty | one thousand two hundred and thirty |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |123E-4}} | zero point zero one two three | zero point zero one two three |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |1001001001001000 | lk=on}} | one quadrillion one trillion one billion one million one thousand | one quadrillion one trillion one billion one million one thousand |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |1001001001001000 | lk=billion,quadrillion}} | one quadrillion one trillion one billion one million one thousand | one quadrillion one trillion one billion one million one thousand |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |5E30}} | five nonillion | five nonillion |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |-123456789.25}} | negative one hundred twenty-three million four hundred fifty-six thousand seven hundred and eighty-nine point two five | negative one hundred twenty-three million four hundred fifty-six thousand seven hundred and eighty-nine point two five |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |0 | zero=foo}} | foo | foo |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |0 | ord=on | zero=none}} | none | none |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |1 | numerator=2 | denominator=3}} | one and two-thirds | one and two-thirds |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english || numerator=2 | denominator=3}} | two-thirds | two-thirds |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |1 | denominator=2}} | one and a half | one and a half |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |1 | numerator=3 | denominator=2}} | one and three-halves | one and three-halves |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |1 | numerator=1 | denominator=4}} | one and a quarter | one and a quarter |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |1 | numerator=1 | denominator=4 | sp=us}} | one and a fourth | one and a fourth |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |1 | numerator=1 | denominator=4 | one=one}} | one and one-quarter | one and one-quarter |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |1 | numerator=1 | denominator=4 | sp=us | one=one}} | one and one-fourth | one and one-fourth |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |9 | numerator=3 | denominator=4}} | nine and three-quarters | nine and three-quarters |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |9 | numerator=3 | denominator=4 | sp=us}} | nine and three-fourths | nine and three-fourths |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |23 | numerator=12 | denominator=16}} | twenty-three and twelve-sixteenths | twenty-three and twelve-sixteenths |
ข้อความ | ที่คาดหวัง | ที่ได้รับ | |
---|---|---|---|
ไม่ถูกต้อง | {{#invoke:ConvertNumeric | numeral_to_english |}} | Invalid decimal numeral | ข้อผิดพลาด Lua ใน มอดูล:ConvertNumeric บรรทัดที่ 722: Invalid decimal numeral |
ไม่ถูกต้อง | {{#invoke:ConvertNumeric | numeral_to_english |a}} | Invalid decimal numeral | ข้อผิดพลาด Lua ใน มอดูล:ConvertNumeric บรรทัดที่ 722: Invalid decimal numeral |
ไม่ถูกต้อง | {{#invoke:ConvertNumeric | numeral_to_english |.}} | Invalid decimal numeral | ข้อผิดพลาด Lua ใน มอดูล:ConvertNumeric บรรทัดที่ 722: Invalid decimal numeral |
ไม่ถูกต้อง | {{#invoke:ConvertNumeric | numeral_to_english |e}} | Invalid decimal numeral | ข้อผิดพลาด Lua ใน มอดูล:ConvertNumeric บรรทัดที่ 722: Invalid decimal numeral |
ไม่ถูกต้อง | {{#invoke:ConvertNumeric | numeral_to_english |E}} | Invalid decimal numeral | ข้อผิดพลาด Lua ใน มอดูล:ConvertNumeric บรรทัดที่ 722: Invalid decimal numeral |
ไม่ถูกต้อง | {{#invoke:ConvertNumeric | numeral_to_english |E1}} | Invalid decimal numeral | ข้อผิดพลาด Lua ใน มอดูล:ConvertNumeric บรรทัดที่ 722: Invalid decimal numeral |
ไม่ถูกต้อง | {{#invoke:ConvertNumeric | numeral_to_english |.E1}} | Invalid decimal numeral | ข้อผิดพลาด Lua ใน มอดูล:ConvertNumeric บรรทัดที่ 722: Invalid decimal numeral |
ไม่ถูกต้อง | {{#invoke:ConvertNumeric | numeral_to_english |+}} | Invalid decimal numeral | ข้อผิดพลาด Lua ใน มอดูล:ConvertNumeric บรรทัดที่ 722: Invalid decimal numeral |
ไม่ถูกต้อง | {{#invoke:ConvertNumeric | numeral_to_english |-}} | Invalid decimal numeral | ข้อผิดพลาด Lua ใน มอดูล:ConvertNumeric บรรทัดที่ 722: Invalid decimal numeral |
ไม่ถูกต้อง | {{#invoke:ConvertNumeric | numeral_to_english |123a}} | Invalid decimal numeral | ข้อผิดพลาด Lua ใน มอดูล:ConvertNumeric บรรทัดที่ 722: Invalid decimal numeral |
ไม่ถูกต้อง | {{#invoke:ConvertNumeric | numeral_to_english |a123}} | Invalid decimal numeral | ข้อผิดพลาด Lua ใน มอดูล:ConvertNumeric บรรทัดที่ 722: Invalid decimal numeral |
ไม่ถูกต้อง | {{#invoke:ConvertNumeric | numeral_to_english |0.1a}} | Invalid decimal numeral | ข้อผิดพลาด Lua ใน มอดูล:ConvertNumeric บรรทัดที่ 722: Invalid decimal numeral |
ไม่ถูกต้อง | {{#invoke:ConvertNumeric | numeral_to_english |-a123}} | Invalid decimal numeral | ข้อผิดพลาด Lua ใน มอดูล:ConvertNumeric บรรทัดที่ 722: Invalid decimal numeral |
ข้อความ | ที่คาดหวัง | ที่ได้รับ | |
---|---|---|---|
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |1 | round=on}} | one | one |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |37 | round=on}} | thirty-seven | thirty-seven |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |190 | round=on}} | two hundred | two hundred |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |110 | round=up}} | two hundred | two hundred |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |190 | round=down}} | one hundred | one hundred |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |87654321 | round=on}} | ninety million | ninety million |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |12345678 | round=on}} | twelve million | twelve million |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |-190 | round=on}} | negative two hundred | negative two hundred |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |-190 | round=up}} | negative one hundred | negative one hundred |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |-110 | round=down}} | negative two hundred | negative two hundred |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |0.25 | round=on}} | zero | zero |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |0.5 | round=on}} | one | one |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |-0.25 | round=on}} | zero | zero |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |-0.5 | round=on}} | negative one | negative one |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |0.01 | round=up}} | one | one |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |0.99 | round=down}} | zero | zero |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |-0.01 | round=down}} | negative one | negative one |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_english |-0.99 | round=up}} | zero | zero |
ข้อความ | ที่คาดหวัง | ที่ได้รับ | |
---|---|---|---|
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |0}} | ศูนย์ | ศูนย์ |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |1}} | หนึ่ง | หนึ่ง |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai | 1 }} | หนึ่ง | หนึ่ง |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |1 | case=u}} | หนึ่ง | หนึ่ง |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |1 | case=U}} | หนึ่ง | หนึ่ง |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |-1}} | ลบหนึ่ง | ลบหนึ่ง |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |-1 | negative=อัน}} | อันหนึ่ง | อันหนึ่ง |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |-1 | negative=ติดลบ}} | ติดลบหนึ่ง | ติดลบหนึ่ง |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |70}} | เจ็ดสิบ | เจ็ดสิบ |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |42}} | สี่สิบสอง | สี่สิบสอง |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |61}} | หกสิบเอ็ด | หกสิบเอ็ด |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |101}} | หนึ่งร้อยเอ็ด | หนึ่งร้อยเอ็ด |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |123}} | หนึ่งร้อยยี่สิบสาม | หนึ่งร้อยยี่สิบสาม |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |123 | sp=us}} | หนึ่งร้อยยี่สิบสาม | หนึ่งร้อยยี่สิบสาม |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |123 | adj=on}} | หนึ่งร้อยยี่สิบสาม | หนึ่งร้อยยี่สิบสาม |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |1050}} | หนึ่งพันห้าสิบ | หนึ่งพันห้าสิบ |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |1050 | sp=us}} | หนึ่งพันห้าสิบ | หนึ่งพันห้าสิบ |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |0.25}} | ศูนย์จุดสองห้า | ศูนย์จุดสองห้า |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |.25}} | ศูนย์จุดสองห้า | ศูนย์จุดสองห้า |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |0 | ord=on}} | ศูนย์ | ศูนย์ |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |33 | ord=on}} | สามสิบสาม | สามสิบสาม |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |40 | ord=on}} | สี่สิบ | สี่สิบ |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |5000000000 | ord=on}} | ห้าพันล้าน | ห้าพันล้าน |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |0 | pl=on}} | ศูนย์ | ศูนย์ |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |76 | pl=on}} | เจ็ดสิบหก | เจ็ดสิบหก |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |1000000000000000000000000000001}} | หนึ่งล้านล้านล้านล้านล้านเอ็ด | หนึ่งล้านล้านล้านล้านล้านเอ็ด |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |1.23E3}} | หนึ่งพันสองร้อยสามสิบ | หนึ่งพันสองร้อยสามสิบ |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |123E-4}} | ศูนย์จุดศูนย์หนึ่งสองสาม | ศูนย์จุดศูนย์หนึ่งสองสาม |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |5E30}} | ห้าล้านล้านล้านล้านล้าน | ห้าล้านล้านล้านล้านล้าน |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |-123456789.25}} | ลบหนึ่งร้อยยี่สิบสามล้านสี่แสนห้าหมื่นหกพันเจ็ดร้อยแปดสิบเก้าจุดสองห้า | ลบหนึ่งร้อยยี่สิบสามล้านสี่แสนห้าหมื่นหกพันเจ็ดร้อยแปดสิบเก้าจุดสองห้า |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |0 | zero=foo}} | foo | foo |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |0 | zero=}} | ||
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |1 | numerator=2 | denominator=3}} | หนึ่งเศษสองส่วนสาม | หนึ่งเศษสองส่วนสาม |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai || numerator=2 | denominator=3}} | เศษสองส่วนสาม | เศษสองส่วนสาม |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |1 | denominator=2}} | หนึ่งเศษหนึ่งส่วนสอง | หนึ่งเศษหนึ่งส่วนสอง |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |1 | numerator=3 | denominator=2}} | หนึ่งเศษสามส่วนสอง | หนึ่งเศษสามส่วนสอง |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |1 | numerator=1 | denominator=4}} | หนึ่งเศษหนึ่งส่วนสี่ | หนึ่งเศษหนึ่งส่วนสี่ |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |1 | numerator=1 | denominator=4 | one=หนึ่ง}} | หนึ่งเศษหนึ่งส่วนสี่ | หนึ่งเศษหนึ่งส่วนสี่ |
ผ่าน | {{#invoke:ConvertNumeric | numeral_to_thai |9 | numerator=3 | denominator=4}} | เก้าเศษสามส่วนสี่ | เก้าเศษสามส่วนสี่ |
ข้อความ | ที่คาดหวัง | ที่ได้รับ | |
---|---|---|---|
ไม่ถูกต้อง | {{#invoke:ConvertNumeric | numeral_to_english |1 | round=on}} | หนึ่ง | one |
ไม่ถูกต้อง | {{#invoke:ConvertNumeric | numeral_to_english |37 | round=on}} | สามสิบเจ็ด | thirty-seven |
ไม่ถูกต้อง | {{#invoke:ConvertNumeric | numeral_to_english |190 | round=on}} | สองร้อย | two hundred |
ไม่ถูกต้อง | {{#invoke:ConvertNumeric | numeral_to_english |110 | round=up}} | สองร้อย | two hundred |
ไม่ถูกต้อง | {{#invoke:ConvertNumeric | numeral_to_english |190 | round=down}} | หนึ่งร้อย | one hundred |
ไม่ถูกต้อง | {{#invoke:ConvertNumeric | numeral_to_english |87654321 | round=on}} | เก้าสิบล้าน | ninety million |
ไม่ถูกต้อง | {{#invoke:ConvertNumeric | numeral_to_english |12345678 | round=on}} | สิบสองล้าน | twelve million |
ไม่ถูกต้อง | {{#invoke:ConvertNumeric | numeral_to_english |-190 | round=on}} | ลบสองร้อย | negative two hundred |
ไม่ถูกต้อง | {{#invoke:ConvertNumeric | numeral_to_english |-190 | round=up}} | ลบหนึ่งร้อย | negative one hundred |
ไม่ถูกต้อง | {{#invoke:ConvertNumeric | numeral_to_english |-110 | round=down}} | ลบสองร้อย | negative two hundred |
ไม่ถูกต้อง | {{#invoke:ConvertNumeric | numeral_to_english |0.25 | round=on}} | ศูนย์ | zero |
ไม่ถูกต้อง | {{#invoke:ConvertNumeric | numeral_to_english |0.5 | round=on}} | หนึ่ง | one |
ไม่ถูกต้อง | {{#invoke:ConvertNumeric | numeral_to_english |-0.25 | round=on}} | ศูนย์ | zero |
ไม่ถูกต้อง | {{#invoke:ConvertNumeric | numeral_to_english |-0.5 | round=on}} | ลบหนึ่ง | negative one |
ไม่ถูกต้อง | {{#invoke:ConvertNumeric | numeral_to_english |0.01 | round=up}} | หนึ่ง | one |
ไม่ถูกต้อง | {{#invoke:ConvertNumeric | numeral_to_english |0.99 | round=down}} | ศูนย์ | zero |
ไม่ถูกต้อง | {{#invoke:ConvertNumeric | numeral_to_english |-0.01 | round=down}} | ลบหนึ่ง | negative one |
ไม่ถูกต้อง | {{#invoke:ConvertNumeric | numeral_to_english |-0.99 | round=up}} | ศูนย์ | zero |