Einhugur macOS Bridge plugin. |

# NSUserDefaults.SingleForKey Method

Gets or sets Single value for given key.

SingleForKey(
key as String) as Single
SingleForKey(
key as String
assigns value as Single)

#### Parameters

key
  Gets or sets Single value for given key.
value (assignment parameter)
  The value to set.

#### Returns

Single
  Returns the value for the requested key or 0.0 if key was not found or if the key did not contain Single value.

#### Remarks

#### See Also

NSUserDefaults Class