Number 30,331.2 written in: 'lowercase', 'UPPERCASE', 'Title Case', 'Sentence case', 'Start Case', 'camelCase', 'hyphen-case' and 'snake_case'.
Notes on Letter Cases used to write out in words the number above:
1: Lowercase: only lowercase letters are used. Example: 'seventy-six and two tenths'.
2: Uppercase: only uppercase letters are used. Example: 'SEVENTY-SIX AND TWO TENTHS'.
3. Title Case: first letter of each word is capitalized, except for certain short words, such as articles, conjunctions and short prepositions, 'a', 'an', 'the', 'and', 'but', 'for', 'at', 'by', 'to', 'or', 'in', etc. Example: 'Seventy-Six and Two Tenths'.
4. Sentence case: only the first letter of the first word is capitalized. Example: 'Seventy-six and two tenths'.
5. Start Case: first letter of each word is capitalized without exception. Example: 'Seventy-Six And Two Tenths'.
6. Camel Case: text has no spaces nor punctuation and first letter of each word is capitalized except for the very first letter in the series. Example: 'seventySixAndTwoTenths'.
Pascal Case: See the Camel Case above, but the first letter is also capitalized. Example: 'SeventySixAndTwoTenths'.
7. Hyphen Case: text has no spaces nor punctuation and the words are delimited by hyphen. Example: 'seventy-six-and-two-tenths'. Hyphen Case can be lowercase or uppercase.
8. Snake Case: text has no spaces nor punctuation and the words are delimited by underscore. Example: 'seventy_six_and_two_tenths'. Snake Case can be lowercase or uppercase.
Notes on Writing Out Numbers:
1: It's correct to hyphenate all compound numbers from twenty-one (21) through ninety-nine (99). The hyphen is the minus sign, as in 'thirty-four' (34).
2: In American English, unlike British English, when writing out natural numbers of three or more digits, the word 'and' is not used after 'hundred' or 'thousand': so it is 'one thousand two hundred thirty-four' and not 'one thousand two hundred and thirty-four'.
3. Do not use commas when writing out in words numbers above 999: so it is 'one thousand two hundred thirty-four' and not 'one thousand, two hundred thirty-four'.
4. Use commas when writing in digits numbers above 999: 1,234; 43,290, etc.
How to write out numbers in words in (US) American English
1. How to convert natural numbers (positive integers) to (US) American English words, how to write them out (spell them out)?
1.1. To know how to write a number in words we must know the place value of each digit.
For example, the number 12,345 has a 1 in the ten thousands place, a 2 in the thousands place, a 3 in the hundreds place, a 4 in the tens place and a 5 in the ones place.
12,345 in words =
= one ten thousands (10,000) + two thousands (2,000) + three hundreds (300) + four tens (40) + five ones
= ten thousands (10,000) + two thousands (2,000) + three hundreds (300) + four tens (40) + five ones
= ten thousand + two thousand + three hundred + forty + five
= (ten + two) thousand + three hundred + forty-five
= twelve thousand + three hundred + forty-five
= twelve thousand three hundred forty-five.
1: Note the hyphen (or the minus sign) in "thirty-four" above. Technically, it's correct to hyphenate all compound numbers from twenty-one (21) through ninety-nine (99).
2: In American English, when writing out natural numbers of three or more digits, the word "and" is not used after "hundred" or "thousand". So it is "one hundred twenty-three" and not "one hundred and twenty-three", though you may hear a lot of people using the last, informally. In British English, the word "and" is used after "hundred" or "thousand" in numbers of three or more digits.
3. Do not use commas when writing out numbers above 999: so it is "one thousand two hundred thirty-four" and not "one thousand, two hundred thirty-four".
4. For clarity, use commas when writing figures of four or more digits: 1,234, 43,290,120, etc. In other countries a point is used to group digits by 3 and a comma to separate the decimals, ex: 1.234,55, 43.290.120,84. In some other countries a space is used to group digits by 3, ex: 1 234, 43 290 120.
Spell out all numbers beginning a sentence, "Forty years ago today,..." Not "40 years ago today,...".
The Chicago Manual of Style calls for the numbers zero through one hundred to be written out - this would include forms like "one hundred million".
Using words to write short numbers makes your writing look clean and classy. In handwriting, words are easy to read and hard to mistake for each other. Writing longer numbers as words isn't as useful, but it's good practice while you're learning.
Otherwise, clarity should matter, for example when two numbers are used in a row allways spell one out: "They needed five 2-foot copper pipes to finish the job. There were 15 six-foot tall men on the basketball team roster.".
Be consistent within a sentence, phrase... Do not write "... one million people..." and "... 1,000,000 cars..."; stick to one or another, not both.