Exemplo n.º 1
0
        public static string ToCheckAnnotation(this float number, LetterCase letterCase = LetterCase.LowerCase, bool includeWordDollars = true, bool includeWordCents = false)
        {
            var checkAnnotator = new CheckAnnotationSpeller(
                TransformTextFactory.GetTransformation(letterCase), includeWordDollars, includeWordCents);

            return(checkAnnotator.Spell(number));
        }
Exemplo n.º 2
0
        public static string ToNumberString(this long number, LetterCase letterCase = LetterCase.LowerCase)
        {
            var converter = new NumberToTextSpeller(
                TransformTextFactory.GetTransformation(letterCase));

            return(converter.Spell(number));
        }
Exemplo n.º 3
0
        public static string ToNumberString(this double number, LetterCase letterCase = LetterCase.LowerCase)
        {
            var speller = new FloatingPointSpeller(
                TransformTextFactory.GetTransformation(letterCase));

            return(speller.Spell(number));
        }