T
thiel
Hi,
I tried to print an array with a floating point numbers e.g. x[0,0] =
55.123 with the format: printf("%0.04f\n", x[0,0])
But it failed and I got the message: `printf': can't convert Array into
Float (TypeError)
When I tried printf("%0.04f\n", 55.123) I got the expected aswer: 55.1123
Can anyone tell me how I can print an array with floating point numbers?
Thanks in advance,
Thiel Chang
I tried to print an array with a floating point numbers e.g. x[0,0] =
55.123 with the format: printf("%0.04f\n", x[0,0])
But it failed and I got the message: `printf': can't convert Array into
Float (TypeError)
When I tried printf("%0.04f\n", 55.123) I got the expected aswer: 55.1123
Can anyone tell me how I can print an array with floating point numbers?
Thanks in advance,
Thiel Chang