groups

name language licence
NSTreeNode indexPathOfNodeWithRepresentedObject Objective-C MIT
Convert a number to text Perl MIT
Exact Table Cell Value Double-Clicked (through Bindings) Objective-C Other
Animating Progress Indicator in Menu Objective-C Other
NSDate Additions for Time Intervals since System Startup Objective-C Other
Pop Contextual Menu on standard button mouseDown: Objective-C Other
watchpoint for properties Other Other
NSObject executeAfterDelay:handler: Objective-C MIT

< 1 2 3 4 >



language: Perl
licence: MIT

Convert a number to text

options: view full snippetsend to code collector
#!/usr/bin/perl
# 
# Turn a number into its spelled-out equivalent
#
#######################################################
#
# Pre-defined data
%segVals = ( '0' => '',
	     '1' => 'thousand, ',
	     '2' => 'million, ',
	     '3' => 'billion, ',
	     '4' => 'trillion, ',
	     '5' => 'quadrillion, ',
	     '6' => 'quintillion, ',
	     '7' => 'sextillion, ',
	
(Continues...)