File

src/helpers/visualBasic.ts/visualBasic.ts

Description

Contains the procedures used to perform various conversion operations.

Index

Methods

Methods

Static int
int(number: number)

Returns the integer portion of a number.

Parameters :
Name Type Optional Description
number number No

A number or any valid numeric expression.

Returns : any

The integer portion of a number.

Static isCharInStringACorrectNumber
isCharInStringACorrectNumber(char: string, string: string)

Determines if a character within a string corresponds to a number or a point.

Parameters :
Name Type Optional Description
char string No

Character within string

string string No

String to be checked

Returns : boolean

True if a character within a string corresponds to a number or a point.

Static isStringNullOrEmpty
isStringNullOrEmpty(string: string)

Determines if a string is null or empty.

Parameters :
Name Type Optional Description
string string No

string.

Returns : boolean

True if the string is null or empty.

Static str
str(number: any)

Returns a String representation of a number.

Parameters :
Name Type Optional Description
number any No

An Object containing any valid numeric expression.

Returns : string

A String representation of a number.

Static val
val(inputStr: string)

Returns the numbers contained in a string as a numeric value of appropriate type.

Parameters :
Name Type Optional Description
inputStr string No

String containing a number.

Returns : number

The numbers contained in a string as a numeric value of appropriate type.

results matching ""

    No results matching ""