Numbers_Words
[ class tree: Numbers_Words ] [ index: Numbers_Words ] [ all elements ]

Class: Numbers_Words_it_IT

Source Location: /Numbers_Words-0.16.0/Words/lang.it_IT.php

Class Overview

Numbers_Words
   |
   --Numbers_Words_it_IT

Class for translating numbers into Italian.


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: Numbers_Words

Numbers_Words::getLocales()
Lists available locales for Numbers_Words
Numbers_Words::raiseError()
Trigger a PEAR error
Numbers_Words::toCurrency()
Converts a currency value to word representation (1.02 => one dollar two cents) If the number has not any fraction part, the "cents" number is omitted.
Numbers_Words::toWords()
Converts a number to its word representation

Class Details

[line 51]
Class for translating numbers into Italian.

It supports up to quadrilions



[ Top ]


Class Variables

$lang =  'Italian'

[line 67]

Language name in English
  • Access: public

Type:   string


[ Top ]

$lang_native =  'Italiano'

[line 74]

Native language name
  • Access: public

Type:   string


[ Top ]

$locale =  'it_IT'

[line 60]

Locale name
  • Access: public

Type:   string


[ Top ]



Method Detail

toWords   [line 130]

string toWords( integer $num, [integer $power = 0])

Converts a number to its word representation in italiano.
  • Return: The corresponding word representation
  • Author: Filippo Beltramini
  • Since: PHP 4.2.3
  • Access: public

Overrides Numbers_Words::toWords() (Converts a number to its word representation)

Parameters:

integer   $num   —  An integer between -infinity and infinity inclusive :) that should be converted to a words representation
integer   $power   —  The power of ten for the rest of the number to the right. For example toWords(12,3) should give "doce mil". Optional, defaults to 0.

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:29:45 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.