FloatingPointConstant
public struct FloatingPointConstant : Constant, Hashable
extension FloatingPointConstant: CustomStringConvertible
A floating-point number Hylo IR constant.
-
The serialized value of this constant.
Declaration
Swift
public let value: String -
The Hylo IR type of this instance.
Declaration
Swift
public let type: IR.Type -
Creates a new floating-point Hylo IR constant with value
vand the giventype.Declaration
Swift
private init(_ v: String, type: BuiltinType) -
Creates a new Hylo IR
float64constant with valuev.Declaration
Swift
public static func float64(_ v: String) -> FloatingPointConstant -
Creates a new Hylo IR
float32constant with valuev.Declaration
Swift
public static func float32(_ v: String) -> FloatingPointConstant -
Declaration
Swift
public var description: String { get }
View on GitHub