Ada Programming/Libraries/Ada.Text IO.Editing

is a unit of the Predefined Language Environment since Ada 95.

This package is used for the generation and printing of strings from numbers representing amounts in some currency. The inclusion of a currency can be simply avoided by passing  as parameter.

Example
Example representing the use of.

Example_Euros Euro_Price_Type  001  6 Euros_IO  AdaText_IOEditingDecimal_Output Num                Euro_Price_Type Default_Currency   "EUR " Default_Fill Default_Separator Default_Radix_Mark A_Price  Euro_Price_Type  587326 AdaText_IOPut_Line "Price with cents: " AdaText_IOPut_Line Euros_IOImage Item A_Price Pic  AdaText_IOEditingTo_Picture "#_###_###_##9.99"   AdaText_IOPut_Line "Integer price: " Euros_IOPut Item A_Price Pic  AdaText_IOEditingTo_Picture "#_###_###_##9" Example_Euros

Specification
Picture Valid Pic_String       String Blank_When_Zero  Boolean  False  Boolean To_Picture Pic_String       String Blank_When_Zero  Boolean  False Picture Pic_String     Pic   Picture  String Blank_When_Zero Pic  Picture  Boolean Max_Picture_Length    implementation_defined Picture_Error Default_Currency     String     "$" Default_Fill         Character Default_Separator    Character Default_Radix_Mark   Character Num Default_Currency    String     Text_IOEditingDefault_Currency Default_Fill        Character  Text_IOEditingDefault_Fill Default_Separator   Character  Text_IOEditingDefault_Separator Default_Radix_Mark  Character  Text_IOEditingDefault_Radix_Mark Decimal_Output Length Pic       Picture Currency  String  Default_Currency Natural Valid Item      Num Pic       Picture Currency  String  Default_Currency Boolean Image Item        Num Pic         Picture Currency    String     Default_Currency Fill        Character  Default_Fill Separator   Character  Default_Separator Radix_Mark  Character  Default_Radix_Mark String Put File        File_Type Item        Num Pic         Picture Currency    String     Default_Currency Fill        Character  Default_Fill Separator   Character  Default_Separator Radix_Mark  Character  Default_Radix_Mark Put Item        Num Pic         Picture Currency    String     Default_Currency Fill        Character  Default_Fill Separator   Character  Default_Separator Radix_Mark  Character  Default_Radix_Mark Put To          String Item        Num Pic         Picture Currency    String     Default_Currency Fill        Character  Default_Fill Separator   Character  Default_Separator Radix_Mark  Character  Default_Radix_Mark Decimal_Output Import Ada Picture AdaText_IOEditing

Wikibook

 * Ada Programming/Libraries/Ada

Ada Style Guide

 * Ada Style Guide/Reusability