BSKEvaluateNumber

Module: BSKValue
BSKFLOAT BSKEvaluateNumber( BSKValue* value );
Inputs: Returns: 0, or the converted numeric value of the parameter.

Description: If value is VT_NUMBER, the numeric value is returned (and if it is VT_DICE, the dice are rolled to determine the number). If value is VT_STRING, the string is interpreted as if representing a number, and that number is returned (ie, via atof). If value is anything else, 0 is returned.

Return to the API
Return to the function listing


Last updated on 9 Feb 2001 by Jamis Buck (minam@rpgplanet.com)