TypeFloat

class dsviper.TypeFloat

Bases: Type

The float type.

Use the static property Type.FLOAT.

description(*, namespace: NameSpace | None = None) → str

Return the same as representation(): the built-in name, whatever namespace is given.

representation(*, namespace: NameSpace | None = None) → str

Return the type’s built-in name, the same whatever namespace is given.

runtime_id() → ValueUUId

Return the uuid identifying this type.

It is computed from what the type is, so the same declaration yields the same id in any Definitions. Definitions says what each kind is computed from.

type_code() → str

Return the code naming this kind of type, such as “int32”, “struct” or “vector”.

type_name() → TypeName

Return the TypeName: the built-in name, in the global namespace.