 		(int + dec).toLowerCase()
 
 # Main function 2 of 2
-speakAmt = (str, options = 'amount', zeroCent) ->
-	# convert amount `str` to written text
-	# accept options as 'amount' or 'cheque'
-	# - amount: some dollars and some cents
-	# - cheque: Some Dollars and Some Cents Only
+###
+Convert numerical amount to written text.
+@param {string} str - The input in string.
+@param {type} type - Either 'amount' or 'cheque':
+	- 'amount': some dollars and some cents.
+	- 'cheque': Some Dollars and Some Cents Only.
+@param {boolean} zeroCent - When zero cent:
+	- true: "and no cent"
+	- false: "and zero cent"
+###
+speakAmt = (str, type, zeroCent) ->
 	if str is '0' then output = 'Null'
 	else
 		dollarUnit = ['Dollar', 'Dollars']

import splitInt from './utils/split-int.coffee'
import speakByDigit from './utils/speak-by-digit.coffee'
import parse99 from './utils/parse-99.coffee'

n1 = [
	'' #zero

@param {Object|null} options - The Numbo options object.
@return {string|null} - e.g. 'one hundred point two three', or null if detects error.
###
export default (input, options = defaultOptions) ->
	if input is '' then return null
	if input is '1e+100' then return 'Ding! One Google... Oops... One Googol!!'
	if check(input) is false
