BBjspHashMap::setFloat (Deprecated)

The BBJSP system is deprecated. For new development, use BBxServlet.

Description

In BBj 16.0 and higher, this method adds a Float value to the map.

This method will attempt to coerce the given object to a Float, allowing you to store an integer value as a Float.

Syntax

Return Value

Method

void

setFloat(string key, Object val)

Parameters

Variable

Description

key

The key.

val

A Float.

Return Value

None.

Remarks

None.

Example

declare BBjspHashMap map!

map! = BBjAPI().makeBBJSP().makeBBjspHashMap()

map!.setFloat("V1","1")
map!.setFloat("V2",0)
map!.setFloat("V3",1.23)
map!.setFloat("V4","9.1")

print map!

See Also

BBjspHashMap

BBjspHashMap::getFloat()