Creating the decimal to temperature cast
To create the decimal to temperature cast:
Choose
Edit
>
Insert
>
Cast
and type the following information in the
New Cast
wizard.
Cast property
Decimal to temperature value
Cast from type
decimal
Cast to type
temperature
Cast must be called for implicit type conversion
Yes
Cast requires a user defined cast support function
Yes
Support routine name is:
DecToTempCast
Language
C
Object grant privileges
Grant execute privileges
Click
Finish
and then choose
Project
>
Save
to save your project.
Parent topic:
Tutorial exercise 2: Creating distinct data types and casts
Copyright© 2019 HCL Technologies Limited