- All Superinterfaces:
ArithmeticType,ObjectType,StandardBasicType,Type,UnqualifiedObjectType
The floating types come in four kinds:
float,
double, long double, representing increasing
precision, and "real", a CIVL-C type denoted $real representing
the mathematical real numbers. Each also comes in a real and complex variant.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface dev.civl.abc.ast.type.IF.StandardBasicType
StandardBasicType.BasicTypeKindNested classes/interfaces inherited from interface dev.civl.abc.ast.type.IF.Type
Type.TypeKind -
Method Summary
Modifier and TypeMethodDescriptionThe kind of floating type (float, double, or long double).booleanIs this complex?Methods inherited from interface dev.civl.abc.ast.type.IF.ArithmeticType
inComplexDomain, inRealDomain, isEnumeration, isFloating, isIntegerMethods inherited from interface dev.civl.abc.ast.type.IF.ObjectType
hasKnownConstantSize, isComplete, isConstantQualifiedMethods inherited from interface dev.civl.abc.ast.type.IF.StandardBasicType
getBasicTypeKindMethods inherited from interface dev.civl.abc.ast.type.IF.Type
compatibleWith, equivalentTo, getId, ignoreQualifiersAtomic, isScalar, isVariablyModified, kind, print
-
Method Details
-
isComplex
boolean isComplex()Is this complex?- Returns:
- true if complex, false if real
-
getFloatKind
FloatingType.FloatKind getFloatKind()The kind of floating type (float, double, or long double).- Returns:
- the float kind
-