Table of Contents

Method ToSingle

Namespace
MongoDB.Bson.Serialization.Options
Assembly
MongoDB.Bson.dll

ToSingle(Decimal128)

Converts a Decimal128 to a Single.

public float ToSingle(Decimal128 value)

Parameters

value Decimal128

A Decimal128.

Returns

float

A Single.

ToSingle(double)

Converts a Double to a Single.

public float ToSingle(double value)

Parameters

value double

A Double.

Returns

float

A Single.

ToSingle(int)

Converts an Int32 to a Single.

public float ToSingle(int value)

Parameters

value int

An Int32.

Returns

float

A Single.

ToSingle(long)

Converts an Int64 to a Single.

public float ToSingle(long value)

Parameters

value long

An Int64.

Returns

float

A Single.