Input a number to produce a word

Hello everybody, i’m new to elm and programming in general, i’m having some issues trying to input a number to generate a word. Can someone tell what i’m doing wrong ?

Hi @rayan_Tavares, the function “qualtri” already return a string, so you don’t need to use “String.fromFloat” that convert float number into strings. Removing “String.fromFloat” should fix the issue

The answer above is correct. It would be simpler for you to see it if you added a function signature:

qualtri : Float -> Float -> Float -> String
qualtri a b c = .....

In general, it is always useful in Elm to include a function signature so you know exactly what you are trying to achieve.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.