API Reference > bentleyjs-core > Configuration > Config > getNumber getNumber Method Attempt to get a number type variable value. getNumber(name: string, defaultVal?: number): number throws if the variable does not exist and no default value is provided. Parameter Type Description name string the variable name to retrieve. defaultVal number the value to return if the variable does not exist. Returns - number Defined in core/bentley/src/Config.ts Line 134 Last Updated: 11 June, 2024