Creating the integer to temperature, CTemp to FTemp, and FTemp to CTemp casts
To create the integer to temperature, CTemp to FTemp, and FTemp to CTemp casts:
Type the following information in the
New Cast
wizard for each cast.
Cast Property
Integer to temperature Value
CTemp to FTemp value
FTemp to CTemp value
Cast from type
integer
CTemp
FTemp
Cast to type
temperature
FTemp
CTemp
Cast must be called for implicit type conversion
Yes
Yes
Yes
Cast requires a user defined cast support function
Yes
Yes
Yes
Support routine name is:
IntToTempCast
FTempCast
CTempCast
Language
C
C
C
Object grant privileges
Grant execute privileges
Grant execute privileges
Grant execute privileges
Choose
Project
>
Save
to save your project.
Parent topic:
Tutorial exercise 2: Creating distinct data types and casts
Copyright© 2019 HCL Technologies Limited