snowflake.snowpark.functions.try_to_decfloat¶
- snowflake.snowpark.functions.try_to_decfloat(e: Union[Column, str], fmt: Optional[Union[Column, str]] = None) Column[source]¶
A special version of TO_DECFLOAT that returns NULL instead of raising an error if the conversion cannot be performed. Unlike the other TRY_TO_* functions, TRY_TO_DECFLOAT also accepts numeric and boolean input.
Example: