Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
9
Task/Number-names/AppleScript/number-names-1.applescript
Normal file
9
Task/Number-names/AppleScript/number-names-1.applescript
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
use AppleScript version "2.4" -- OS X 10.10 (Yosemite) or later
|
||||
use framework "Foundation"
|
||||
|
||||
on numberToWords(n)
|
||||
return (current application's class "NSNumberFormatter"'s localizedStringFromNumber:(n) numberStyle:(current application's NSNumberFormatterSpellOutStyle)) as text
|
||||
end numberToWords
|
||||
|
||||
numberToWords(-3.6028797018963E+10)
|
||||
--> "minus thirty-six billion twenty-eight million seven hundred ninety-seven thousand eighteen point nine six three"
|
||||
Loading…
Add table
Add a link
Reference in a new issue