I'm doing a division between two fields, but scientific notation always appears at the end of the number: Example: 636.57 / 1031995.85 = 6.168338758338999E-4
my code is: df.withColumn("value",coalesce(col("value_1"),lit(0))/coalesce(col("value_2"),lit(0)))
when i convert using cast("decimal(18,14)"), the result is:
6.1683386E-4
can anyone help me?
I need the result : 6.168338758338999 I tried something similar but it didn't work either: