System.Bluetooth.TBluetoothGattDescriptor.DoGetExponent
Delphi
function DoGetExponent: ShortInt; virtual; abstract;
C++
virtual System::Int8 __fastcall DoGetExponent() = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | TBluetoothGattDescriptor |
Description
Returns an exponent that you must apply to the value of the characteristic that provides the descriptor to obtain the actual value of the characteristic.
The actual value of the characteristic is the result of characteristic value * 10 ^ exponent
.
For example:
- If the characteristic value is 23 and DoGetExponent returns 2, the actual value of the characteristic is 2.300.
- If the characteristic value is 3892 and DoGetExponent returns -3, the actual value of the characteristic is 3.892.
You can only call DoGetExponent if the kind of the descriptor is PresentationFormat.
- Note: This is an abstract method that platform-specific subclasses of TBluetoothGattDescriptor implement.