Numeral.js in format masking

Opensearch Dashboards 1.3 on AWS Elastic Search Service.

In OpenSearch Dashboards, in the scripted fields reference documentation about number type formatting (the link provided is Numeral.js), the documentation states that you can create a mask/formatting of a number data type as I highlighted in red in the attached image.

  • I’ve tryied several times to reproduce this (as stated in the official documentation provided) and it doesn’t work.
  • I am trying to add zeroes to the left of a number type field without success.
  • i.e.: 100.23 to 00100.23 - 0.1 to 001.1