S&box Wiki

Sandbox.StringX.ToFloat

Syntax

static float ToFloat( string str, float Default = 0 )

Description

Convert to float, if not then return Default

Arguments

string str
float Default 0

Returns

float