Luna::Variant::unum

u64 unum(u64 default_value=0) const

Gets the data of one number variant as one unsigned 64-bit integer.

Parameters

  • in default_value

    The optional default number to return.

Return value

Returns the value as one unsigned 64-bit integer. If the value is in another number format, it will be converted automatically. Returns default_value if the variant is not a number variant.