Method code for $root.format_setting()

[Turn off line numbering]
  1: arg name, definer, value;
  2: var i, args;
  3: 
  4: i = definer.setting_info(name);
  5: if (dict_contains(i, 'format)) {
  6:     args = sublist(i['format], 2);
  7:     catch ~methodnf
  8:         return (> .(i['format][1])(value, @args) <);
  9:     with
 10:         return (> $settings_lib.(i['format][1])(value, @args) <);
 11: }
 12: if (type(value) == 'objnum)
 13:     return value.namef('ref);
 14: else
 15:     return "" + value;

["// Created as a part of ColdCore, see: @help Credit"]

the Cold Dark