docs: function generateDollarWord(num) {
    var word = "";
    var billionNum;
    var millionNum;
    var thousandNum;
    var oneNum;
    var hundredth;
    var tenth;
    var one;
    var extractArr;
  
    // at least 1 billion
    if (num.length > 9) {
      billionNum = int(num.slice(0, num.length - 9));
      num = str(int(num) - (billionNum * int(1e9)));
      extractArr = extract(str(billionNum));
      hundredth = extractArr[0];
      tenth = extractArr[1];
      one = extractArr[2];
      word += getBillion(hundredth, tenth, one) + " ";
    }
  
    // at least 1 million
    if (num.length > 6) {
      millionNum = int(num.slice(0, num.length - 6));
      num = str(int(num) - (millionNum * int(1e6)));
      extractArr = extract(str(millionNum));
      hundredth = extractArr[0];
      tenth = extractArr[1];
      one = extractArr[2];
      word += getMillion(hundredth, tenth, one) + " ";
    }
  
    // at least 1 thousand
    if (num.length > 3) {
      thousandNum = int(num.slice(0, num.length - 3));
      num = str(int(num) - (thousandNum * int(1e3)));
      extractArr = extract(str(thousandNum));
      hundredth = extractArr[0];
      tenth = extractArr[1];
      one = extractArr[2];
      word += getThousand(hundredth, tenth, one) + " ";
    }
  
    // at least 1
    if (int(num) && num.length > 0) {
      oneNum = int(num.slice(0, num.length));
      num = str(int(num) - oneNum);
      extractArr = extract(str(oneNum));
  
      hundredth = extractArr[0];
      tenth = extractArr[1];
      one = extractArr[2];
      word += getOne(hundredth, tenth, one) + " ";
    }
  
    return word;
  }