v1.2 (2017/09/30) Tibor Tómács

Similar documents
Worksheet Set - Mastering Numeration 2

MATH MILESTONE # A1 NUMBERS & PLACE VALUES

NUMBERS & PLACE VALUES

a) 1/2 b) 3/7 c) 5/8 d) 4/10 e) 5/15 f) 2/4 a) two-fifths b) three-eighths c) one-tenth d) two-thirds a) 6/7 b) 7/10 c) 5/50 d) ½ e) 8/15 f) 3/4

Place Value. Get in Place. WRITE how many tens and ones you see. Then WRITE the number they make. 5 3 = 53

PROGRAMA DE ENSEÑANZA BILINGÜE

UNIT 1: NATURAL NUMBERS.

N1-1 Whole Numbers. Pre-requisites: None Estimated Time: 2 hours. Summary Learn Solve Revise Answers. Summary

Place Value I. Number Name Standard & Expanded

Instructional Tools Math Pack: Money n2y Unique Learning System

How do you say that big number?

Grade 6 Math. Numeracy: Text Chapter 2

Number Sense 1 AP Book 3.1

Copyright Cengage Learning. All rights reserved.

Naming Whole Numbers and Money

Hexagon Puzzle. four. ten three. eighteen. twenty-one. six. fourteen. twenty. one hundred. seventeen. sixteen. one quarter. two.

Free Math print & Go Pages and centers. Created by: The Curriculum Corner.

Transcriber(s): Baldev, Prashant Verifier(s): DeLeon, Christina Date Transcribed: Spring 2008 Page: 1 of 5

Human Rights begins with the end. His Body. His Penis. His Foreskin. Say No to Circumcision. His Whole Body will Thank you. 100%

MATH LESSON PLAN 2 ARITHMETIC & NUMBERS

4 th Grade Math Notebook

Hundred Thousands. Practice to review I can read and write numbers through 999,999! Practice to remember HW 1.2A. Chapter 1 Place Value.

Maths CAPS. Counting. Fill in the missing numbers: Counts forward and backward in 1s, 2s, 3s, 4s, 5s and 10s from any number between 0 and 200.

These tests contain questions ranging from Level 2 to Level 3. Children should have five seconds to answer questions 1 3 in each test,

Properties of Numbers

What must be added to 30 to make one hundred? =

Unit 1: You and Your Money

b) three million, four hundred and forty-five thousand, eight hundred and eighty-five

Place Value The value of a digit changes depending on its place in a number.

Number Sense Workbook 5, Part 1

First Group Second Group Third Group How to determine the next How to determine the next How to determine the next number in the sequence:

What must be added to 60 to make one hundred? What is seventy minus forty?

Lesson 1: Place Value of Whole Numbers. Place Value, Value, and Reading Numbers in the Billions

Lesson 1. Numbers Large and Small. Let s Explore

Mathematics Third Practice Test A, B & C - Mental Maths. Mark schemes

SAMPLE NINTH EDITION. Margaret L. Lial American River College. Stanley A. Salzman American River College

Number Sense Workbook 6, Part 1

1. Copy and complete each number pattern. a b c. 51 kg 51,2kg 51,8kg d

Copyright 2015 Edmentum - All rights reserved.

Learn your Fours. 1 Homeshcool

California 1 st Grade Standards / Excel Math Correlation by Lesson Number

PLACE VALUE. Edexcel GCSE Mathematics (Linear) 1MA0

Number Cardinal Ordinal

Hinojosa Kinder Math Vocabulary Words. Topic 1. number. zero. one

Outline. transistors logic gates. on numbers on strings. writing numbers in words algorithm flowchart code

Two-Digit Numbers. tens ones = tens ones = tens ones = 3 tens 5 ones = 35. tens ones = tens ones =

b) 12 - = 6 d) 9 - = 3 e) 11 - = 8 f) 10 - = 7

Number Sense AP Book 6.1

Name Date Class. Total (A) Total (B) Total (C) Test Total (A+B+C) R (0-9) I y (10-19) I G (20-25) Maths Basic Skills Week 1

Number Sense Workbook 4, Part 1

WHAT ARE THESE MACHINES REALLY DOING?

Number Sense 1 AP Book 4.1

3) Round 62,164 to the nearest ten thousand.

NS3 Part 1: BLM List. Workbook 3 - Number Sense, Part 1 1 BLACKLINE MASTERS

Stage 2 PROMPT sheet. 2/3 Estimate numbers. 2/1 Know the 2, 3, 5, 10 times tables. 2/4 Order numbers. Count in 10s.

Stage 2 PROMPT sheet. 2/3 Estimate numbers. 2/1 Know the 2, 3, 5, 10 times tables. 2/4 Order numbers. 2/2 Place value

Free Math print & Go Pages and centers. Created by: The Curriculum Corner.

Whole Numbers. Practice 1 Numbers to 10,000, ,000 four hundred thousand

Unit 1: Whole Numbers

Directive No 1/2004. Directive on License Fees for. Telecommunication and Radiocommunication. Equipments, Radio Frequency Spectrum,

A Covering System with Minimum Modulus 42

Arithmetic Practice. Self-descriptive Numbers. Magic Squares. Magic 30. Totalines. continued. Addogons. Multogons. Arithmecuts. Jumblies.

Mexican Bonds. a) Banco Nacional de Mexico Pesos (sixteen million) 4 pieces

Learn your Sixes. 1 Homeshcool.

1 KNOWING OUR NUMBERS

Maryland State Lottery and Gaming Control Agency Standard Rules - Pai Gow Tiles

Whole Numbers. Lesson 1.1 Numbers to 10,000,000

9. [Decimals] Tenths: There are 6 rows completely shaded 6 tenths Hundredths: There are 4 shaded squares in the shorter row. 4 hundredths = 0.

0:00:07.150,0:00: :00:08.880,0:00: this is common core state standards support video in mathematics

Year 2 s Book of Helpful Hints

The Project Gutenberg EBook of My Knitting Book, by Miss Lambert

MORE TO FRACTIONS THAN JUST PIECES

(optional casually introduce the term multiplier as an alternative to common ratio )

Numbers Large and Small. Chapter NUMBER. Big Idea. Learning Goals. Essential Question. Important Words

Year 5 Mental Arithmetic Tests

Answers 1) Answers 1) = 800 2) = 700 3) 1, = 80 4) = 4,000 5) = 800 6) = 1,500 7) 3, = 50 8) 1, = 20

Alan Shepard, : The First American to Travel into Space

MATH GAMES THAT SUPPORT SINGAPORE MATH GRADES

#MakeItWithMarcusFabrics. Scrappier Dots. Fabric by Judie Rothermel. 57 x 68

Object of the game: to make the standard form of the number for that round. To play:

CONTENTS. Preface Introduction... 15

Series. Student. Numbers. My name

Edo. Edo fabrics by 6/5/12

A STORY OF UNITS. Mathematics Curriculum GR A D E. Answer Key GRADE 5 MODULE 1. Place Value and Decimal Fractions

Jim ran 5 laps in the morning. He ran 8 laps in the afternoon. How many laps did he run in all?

Review 2,56,03,489 can be expressed in words as 2 crore fifty-six lakh three thousand four hundred eightynine.

Algebraic Expressions and Equations: Applications I: Translating Words to Mathematical Symbols *

A numeral is a symbol that represents a number. For example, the number six can be expressed by any of these symbols (and there are others):

2) 78,378 A) Hundreds B) Thousands C) Ten thousands D) Tens. 5) 2,694, 995 A) Millions B) Thousands C) Ten thousands D) Tens

GRADE VOCABULARY GUIDE

VOCABULARY GUIDE Foundation-Year 7

RECOMMENDATION ITU-R M.821-1*

Mark scheme. Mathematics tests. for Mental mathematics tests A, B and C. National curriculum assessments KEY STAGE 3. satspapers.

Long vowels sound the same as the alphabet name. Aa Ee Ii Oo Uu. Learning English with Laughter Ltd. All Rights Reserved.

There are mainly three/four types of questions -

STUDENT PRACTICE BOOK. Numbers 1 to 1,000. Grade 2. Table of Contents. Sample file

Math 104: Homework Exercises

Grade 5 Large Numbers

How to Calculate the Probabilities of Winning the Nine Mega Millions Prize Levels:

Go to Grade 3 Everyday Mathematics Sample Lesson

Transcription:

The numspell package v1.2 (2017/09/30) Tibor Tómács tomacs.tibor@uni-eszterhazy.hu 1 Introduction The aim of the numspell package is to spell the cardinal and ordinal numbers from 0 to 10 67 1 (i.e. maximum 66 digits). Currently, the supported languages are English, French, German, Hungarian and Italian. The spelling will happen in the current language. The numspell package requires the services of the following packages: xstring, etoolbox, pdftexcmds. Load the package as usual, with 2 Commands \numspell[ zeros ]{ num } Spelling the cardinal number n = num 10 zeros, where 0 n 10 67 1. The default value of zeros is 0. \numspell{12000} twelve thousand \numspell[3]{12} twelve thousand \numspell[6]{12} twelve million \numspell[63]{1} one vigintillion \thenumspell The \numspell stores the result in this command. \numspell{12000}; \thenumspell twelve thousand; twelve thousand \numspell{1}; \numspell{2}; \thenumspell one; two; two \numspellsave{ name } It generates the \thenumspell name command, which saves the current \thenumspell. \numspell{1}; \numspell{2}; one; two; two; one \numspelldashspace{ length } In the number spelling, the spaces around the dashes are flexibility for the optimal hyphenation. Its value is 0pt plus length. The default value of length is 2pt. 1

\selectlanguage{magyar} \numspell{6512312354762547162546254756}\\[2mm] \numspelldashspace{10pt} \numspell{6512312354762547162546254756} hatkvadrilliárd-ötszáztizenkétkvadrillió-háromszáztizenkéttrilliárd-háromszázötvennégytrillió-hétszázhatvankétbilliárd-ötszáznegyvenhétbillió-egyszázhatvankétmilliárd-ötszáznegyvenhatmillió-kétszázötvennégyezer-hétszázötvenhat hatkvadrilliárd - ötszáztizenkétkvadrillió - háromszáztizenkéttrilliárd - háromszázötvennégytrillió - hétszázhatvankétbilliárd-ötszáznegyvenhétbillió-egyszázhatvankétmilliárd-ötszáznegyvenhatmilliókétszázötvennégyezer-hétszázötvenhat \numspell*[ zeros ]{ num } It works like \numspell, but the number spelling will not be printed. In other words, the following two lines are equivalent: \numspell[ zeros ]{ num } \numspell*[ zeros ]{ num }\thenumspell \numspell*{1} \numspell*{2} two; one \Numspell[ zeros ]{ num } It works like \numspell, but the first letter will be capital. \Numspell{12000} Twelve thousand \Numspell[3]{12} Twelve thousand \Numspell[6]{12} Twelve million \Numspell[63]{1} One vigintillion \Numspell*[ zeros ]{ num } It works like \Numspell, but the number spelling will not be printed. In other words, the following two lines are equivalent: \Numspell[ zeros ]{ num } \Numspell*[ zeros ]{ num }\thenumspell \Numspell*{1} \Numspell*{2} Two; One \ordnumspell[ zeros ]{ num } Spelling the ordinal number n = num 10 zeros, where 0 n 10 67 1. The default value of zeros is 0. 2

\ordnumspell{12000} twelve thousandth \ordnumspell[3]{12} twelve thousandth \ordnumspell[6]{12} twelve millionth \ordnumspell[63]{1} one vigintillionth \ordnumspell*[ zeros ]{ num } It works like \ordnumspell, but the number spelling will not be printed. following two lines are equivalent: \ordnumspell[ zeros ]{ num } \ordnumspell*[ zeros ]{ num }\thenumspell \ordnumspell*{1} \ordnumspell*{2} second; first \Ordnumspell[ zeros ]{ num } It works like \ordnumspell, but the first letter will be capital. \Ordnumspell{12000} Twelve thousandth \Ordnumspell[3]{12} Twelve thousandth \Ordnumspell[6]{12} Twelve millionth \Ordnumspell[63]{1} One vigintillionth \Ordnumspell*[ zeros ]{ num } It works like \Ordnumspell, but the number spelling will not be printed. following two lines are equivalent: \Ordnumspell[ zeros ]{ num } \Ordnumspell*[ zeros ]{ num }\thenumspell \Ordnumspell*{1} \Ordnumspell*{2} Second; First In other words, the In other words, the 3 Commands for English language \numspellus By default, the number spelling will happen in British English, if the english language is active. This command changes it to American English. \numspellus\numspell{1012345} one million, twelve thousand, three hundred forty-five \numspellgb Using the \numspellus command, you can rechange it to British English by this command. For example \numspellus\numspell{1012345}\\ \numspellgb\numspell{1012345} one million, twelve thousand, three hundred forty-five one million, twelve thousand and three hundred and forty-five 3

4 Commands for French language The following commands only work, if french language is active. \numspellpremiere By default, \ordnumspell{1} premier, but \numspellpremiere\ordnumspell{1} première \numspellpremier (default) \numspellpremiere\ordnumspell{1}; \numspellpremier\ordnumspell{1} première ; premier 5 Commands for Hungarian language The following commands only work, if magyar language is active. \anumspell[ zeros ]{ num } It works like \numspell, but the number spelling will start with Hungarian definite article. For example \anumspell{1} az egy \anumspell{2} a kettő \anumspell*[ zeros ]{ num } It works like \anumspell, but the number spelling will not be printed. In other words, the following two lines are equivalent: \anumspell[ zeros ]{ num } \anumspell*[ zeros ]{ num }\thenumspell \anumspell*{1} \anumspell*{2} a kettő; az egy \Anumspell[ zeros ]{ num } It works like \anumspell, but the first letter will be capital. \Anumspell{1} Az egy \Anumspell{2} A kettő \Anumspell*[ zeros ]{ num } It works like \Anumspell, but the number spelling will not be printed. In other words, the following two lines are equivalent: \Anumspell[ zeros ]{ num } \Anumspell*[ zeros ]{ num }\thenumspell 4

\Anumspell*{1} \Anumspell*{2} A kettő; Az egy \aordnumspell[ zeros ]{ num } It works like \ordnumspell, but the number spelling will start with Hungarian definite article. For example \aordnumspell{1} az első \aordnumspell{2} a második \aordnumspell*[ zeros ]{ num } It works like \aordnumspell, but the number spelling will not be printed. In other words, the following two lines are equivalent: \aordnumspell[ zeros ]{ num } \aordnumspell*[ zeros ]{ num }\thenumspell \aordnumspell*{1} \aordnumspell*{2} a második; az első \Aordnumspell[ zeros ]{ num } It works like \aordnumspell, but the first letter will be capital. \Aordnumspell{1} Az első \Aordnumspell{2} A második \Aordnumspell*[ zeros ]{ num } It works like \Aordnumspell, but the number spelling will not be printed. In other words, the following two lines are equivalent: \Aordnumspell[ zeros ]{ num } \Aordnumspell*[ zeros ]{ num }\thenumspell \Aordnumspell*{1} \Aordnumspell*{2} A második; Az első 5

6 Commands for Italian language The following commands only work, if italian language is active. \numspellitmasculine (default) The ordinal numbers will be printed in masculine form. \ordnumspell{1} primo \numspellitfeminine The ordinal numbers will be printed in feminine form. \numspellitfeminine\ordnumspell{1}; \numspellitmasculine\ordnumspell{1} prima; primo 7 Examples Example 1 \usepackage[utf8]{inputenc} \usepackage[t1]{fontenc} \usepackage[magyar,italian,ngerman,french,english]{babel} \usepackage[group-separator={,}]{siunitx} \def\mynum{123456789} \noindent In American English the spelling of \num{\mynum} is {\numspellus\emph{``\numspell{\mynum}''}}. In British English the spelling of \num{\mynum} is \emph{``\numspell{\mynum}''}. In French the spelling of \num{\mynum} is {\selectlanguage{french}\emph{``\numspell{\mynum}''}}. In German the spelling of \num{\mynum} is {\selectlanguage{ngerman}\emph{``\numspell{\mynum}''}}. In Hungarian the spelling of \num{\mynum} is {\selectlanguage{magyar}\emph{`'\numspell{\mynum}''}}. In Italian the spelling of \num{\mynum} is {\selectlanguage{italian}\emph{``\numspell{\mynum}''}}. In American English the spelling of 123,456,789 is one hundred twenty-three million, four hundred fiftysix thousand, seven hundred eighty-nine. 6

In British English the spelling of 123,456,789 is one hundred and twenty-three million, four hundred and fifty-six thousand and seven hundred and eighty-nine. In French the spelling of 123,456,789 is cent vingt-trois millions quatre cent cinquante-six mille sept cent quatre-vingt-neuf. In German the spelling of 123,456,789 is einhundertdreiundzwanzig Millionen vierhundertsechsundfünfzigtausendsiebenhundertneunundachtzig. In Hungarian the spelling of 123,456,789 is százhuszonhárommillió-négyszázötvenhatezer-hétszáznyolcvankilenc. In Italian the spelling of 123,456,789 is centoventitré milioni quattrocentocinquantaseimila settecentottantanove. Example 2 \usepackage[group-separator={,}]{siunitx} \def\mynum{123456789012345678901234567890123456789012345678901234567890123456} \Numspell{\mynum}, that is \num{\mynum}. One hundred and twenty-three vigintillion, four hundred and fifty-six novemdecillion, seven hundred and eighty-nine octodecillion, twelve septendecillion, three hundred and forty-five sexdecillion, six hundred and seventy- eight quindecillion, nine hundred and one quattuordecillion, two hundred and thirty- four tredecillion, five hundred and sixty-seven duodecillion, eight hundred and ninety undecillion, one hundred and twenty-three decillion, four hundred and fifty-six nonillion, seven hundred and eighty-nine octillion, twelve septillion, three hundred and forty-five sextillion, six hundred and seventy-eight quintillion, nine hundred and one quadrillion, two hundred and thirty-four trillion, five hundred and sixty-seven billion, eight hundred and ninety million, one hundred and twenty-three thousand and four hundred and fiftysix, that is 123,456,789,012,345,678,901,234,567,890,123,456,789,012,345,678,901,234,567,890,123,456. Example 3 \newcounter{mycount} \makeatletter The \@whilenum\value{mycount}<51 \do{\ordnumspell{\themycount}\stepcounter{mycount},\ }\dots The zeroth, first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth, eleventh, twelfth, thirteenth, fourteenth, fifteenth, sixteenth, seventeenth, eighteenth, nineteenth, twentieth, twenty- first, twenty-second, twenty-third, twenty-fourth, twenty-fifth, twenty-sixth, twenty-seventh, twenty-eighth, twenty-ninth, thirtieth, thirty-first, thirty-second, thirty-third, thirty-fourth, thirty-fifth, thirty-sixth, thirty- seventh, thirty- eighth, thirty- ninth, fortieth, forty- first, forty- second, forty- third, forty- fourth, forty-fifth, forty-sixth, forty-seventh, forty-eighth, forty-ninth, fiftieth,... 7

Example 4 \newcounter{mycount} \def\themycount{\numspell{\arabic{mycount}}} \makeatletter \Numspell{0}, \@whilenum\value{mycount}<30 \do{\stepcounter{mycount}\themycount,\ }\dots Nought, one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve, thirteen, fourteen, fifteen, sixteen, seventeen, eighteen, nineteen, twenty, twenty-one, twenty-two, twenty-three, twenty-four, twentyfive, twenty-six, twenty-seven, twenty-eight, twenty-nine, thirty,... 8 Limitations Do not use the \numspell, \numspell*, \Numspell, \Numspell*, etc. commands inside \MakeUppercase and sectioning commands. An example for the illustration of the problem: \usepackage{hyperref,numspell} \pagestyle{headings} \section{the \ordnumspell{123} factor} \MakeUppercase{\numspell{123}} \newpage Text The bugs: 1. You can see it on the page 1: one hundred and twenty-three Required: ONE HUNDRED AND TWENTY-THREE 2. You can see it on the heading: THE one hundred and twenty-third FACTOR Required: THE ONE HUNDRED AND TWENTY-THIRD FACTOR 3. You can see it on the pdf bookmark: The 123 factor Required: The one hundred and twenty-third factor The solution is very easy: \ordnumspell*{123} \section{the \thenumspell\ factor} \numspell*{123} \MakeUppercase{\thenumspell} 8