To check the best answer, scroll down to Paulw11's answer.
(I apologize for any english mistakes, it's not my 1st language)
I need to solve this problem in order to continue to develop my app.
Here, I got a screenshot. (I know, it's ugly, I'm setting the constraints.)
The problem is: even when the number is a integer, it still shows as a rational. (ex.: 4 appears as 4.0, 16 as 16.0)
What I want is:
What I don't want to happen:
I'll be very grateful for any help, thank you.
You can simply use the %g
formatting option:
deltaValueS.text = String(format:"∆ é %g",deltaValue)