double auto arrays

BlitzMax Forums/BlitzMax Programming/double auto arrays

BinaryBurst(Posted 2016) [#1]
Global a![]=[1.0,2.0,3.0]


returns "Unable to convert from 'Float array' to 'Double array'" ;(

How do I create an auto array full of doubles? It has to be doubles and it has to be an autoarray because I am copy pasting a huge 5000ish array from maxima. So... yeah :)


Derron(Posted 2016) [#2]
The error says: you give a "Float array" to a variable defined as "Double array"

-> [1.0, 2.0, 3.0] is an array of floats

SuperStrict
Framework Brl.StandardIO

Global a![]=[1.0!,2.0!,3.0!]

Without those "!" you are actually passing floats.


bye
Ron


BinaryBurst(Posted 2016) [#3]
Thanks Ron