specify_decimal function

Method that format a number with four digits

Method that format a number with four digits

specify_decimal(x, k)

Arguments

  • x: number
  • k: number of decimals

Returns

a number convert to string with four digits