I don’t know how it’s working but I imagine that, even if its a primitive type, there is an allocation of the necessary space, no?
o
orangy
10/07/2018, 7:53 PM
It’s on the stack, so almost free
orangy
10/07/2018, 7:53 PM
Should be 🙂
g
gaetan
10/07/2018, 7:56 PM
👍
gaetan
10/07/2018, 8:00 PM
Yes of course. The double and the float are just created during the conversion, it’s not the creation of 10000 doubles for 10000 float. It’s one by one on the stack. I must be a little bit tired 😉.