Cast operations in GOLD¶
In this table, all the cast combinations between types are available, along with their result.
In the first column, the starting types are listed,
From |
---|
Binary |
Nominal |
Integer |
Continuous |
Percentage |
Currency |
Date |
Datetime |
Time |
Month |
Week |
Quarter |
Binary |
Nominal |
Integer |
Continuous |
Percentage |
Currency |
Date |
Datetime |
Time |
Month |
Week |
Quarter |
---|---|---|---|---|---|---|---|---|---|---|---|
No change |
Always |
If possible |
If possible |
If possible |
If possible |
If possible |
If possible |
If possible |
If possible |
If possible |
If possible |
If possible |
No change |
If possible |
If possible |
If possible |
If possible |
If possible |
If possible |
If possible |
If possible |
If possible |
If possible |
If possible |
Always |
No change |
Always |
Always |
Always |
Always (forced) |
Always (forced) |
Always (forced) |
Always (forced) |
Always (forced) |
Always (forced) |
If possible |
Always |
Always - loss of info |
No change |
Always |
Always |
Always - loss of info |
Always - loss of info |
Always - loss of info |
Always - loss of info |
Always - loss of info |
Always - loss of info |
If possible |
Always |
Always - loss of info |
Always |
No change |
Always |
Always - loss of info |
Always - loss of info |
Always - loss of info |
Always - loss of info |
Always - loss of info |
Always - loss of info |
If possible |
Always |
Always - loss of info |
Always |
Always - loss of info |
No change |
Always - loss of info |
Always - loss of info |
Always - loss of info |
Always - loss of info |
Always - loss of info |
Always - loss of info |
If possible |
Always |
Always (forced) |
Always (forced) |
Always (forced) |
Always (forced) |
No change |
Always |
Not allowed |
Always - loss of info |
Always - loss of info |
Always - loss of info |
If possible |
Always |
Always (forced) |
Always (forced) |
Always (forced) |
Always (forced) |
Always - loss of info |
No change |
Always - loss of info |
Always - loss of info |
Always - loss of info |
Always - loss of info |
If possible |
Always |
Always (forced) |
Always (forced) |
Always (forced) |
Always (forced) |
Not allowed |
Not allowed |
No change |
Not allowed |
Not allowed |
Not allowed |
If possible |
Always |
Always (forced) |
Always (forced) |
Always (forced) |
Always (forced) |
Always |
Always |
Not allowed |
No change |
Always - loss of info |
Always - loss of info |
If possible |
Always |
Always (forced) |
Always (forced) |
Always (forced) |
Always (forced) |
Always |
Always |
Not allowed |
Always - loss of info |
No change |
Always - loss of info |
If possible |
Always |
Always (forced) |
Always (forced) |
Always (forced) |
Always (forced) |
Always |
Always |
Not allowed |
Always |
Always - loss of info |
No change |
Assignment Hierarchy¶
Here is a graphical representation of the assignment hierarchy in GOLD.