@inrupt/solid-client
    Preparing search index...

    Function getDecimal

    • Returns the decimal value of the specified Property from a [[Thing]]. If the Property is not present or its value is not of type decimal, returns null. If the Property has multiple decimal values, returns one of its values.

      Parameters

      • thing: Thing

        The [[Thing]] to read a decimal value from.

      • property: string | Url

        The Property whose decimal value to return.

      Returns null | number

      A decimal value for the given Property if present, or null if the Property is not present or the value is not of type decimal.