String To Float

Convert
Both Server and Client
Both Mobile and PC

Convert the specified string to a floating point number

Declaration

func StringToFloat(target string, out var result float, out var isSuccess bool)
go

Parameters

Input

Name Type Description
Target String Target string

Out

Name Type Description
Result Float Result floating point number
Is Success Bool Is the conversion successful?