Method ToSByte

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Bson

Assembly

MongoDB.Bson.dll

ToSByte(Decimal128)

Converts the value of the specified Decimal128 to the equivalent 8-bit signed integer.

[CLSCompliant(false)]
public static sbyte ToSByte(Decimal128 d)

Parameters

d Decimal128

The number to convert.

Returns

sbyte

A 8-bit signed integer equivalent to d.