Skip to main content
  • 10,000 Topics
  • 40,846 Replies
10000 Topics
Number to text (russian amount)

Hi everyone Can help me with script adaptive for airtable ? I need to the amount into text format Summary let table = base.getTable(“Test”); // column Amount = number // column Amount txt = text function number_to_string(_number) { var _arr_numbers = new Array(); _arr_numbers[1] = new Array(’’, ‘один’, ‘два’, ‘три’, ‘четыре’, ‘пять’, ‘шесть’, ‘семь’, ‘восемь’, ‘девять’, ‘десять’, ‘одиннадцать’, ‘двенадцать’, ‘тринадцать’, ‘четырнадцать’, ‘пятнадцать’, ‘шестнадцать’, ‘семнадцать’, ‘восемнадцать’, ‘девятнадцать’); _arr_numbers[2] = new Array(’’, ‘’, ‘двадцать’, ‘тридцать’, ‘сорок’, ‘пятьдесят’, ‘шестьдесят’, ‘семьдесят’, ‘восемьдесят’, ‘девяносто’); _arr_numbers[3] = new Array(’’, ‘сто’, ‘двести’, ‘триста’, ‘четыреста’, ‘пятьсот’, ‘шестьсот’, ‘семьсот’, ‘восемьсот’, ‘девятьсот’); function number_parser(_num, _desc) { var _string = ‘’; var _num_hundred = ‘’; if (_num.length == 3) { _num_hundred = _num.substr(0, 1); _num = _num.substr(1, 3); _string = _arr_numbers[3][_num_hundred] + ’ ';

Badge winners

  • First Reply
    orihas earned the badge First Reply
  • Welcome
    Valentinhas earned the badge Welcome
  • Welcome
    imdeletinghas earned the badge Welcome
  • First Topic
    Uthmanshas earned the badge First Topic
  • Welcome
    Uthmanshas earned the badge Welcome
Show all badges