> var m : 0..7 = 3;
> var a : 1..256 = pow(2, m);
> print a;
8
Hello,--I'm trying to write a model, and I need to compute power of an integer in that.I want something like..var a : 1..8 = 2^m; //where m is an integerFor example if 'm' is 3, I want variable 'a' to have a value 8, which is 2 to the power 3.How do I do this?Thanks
You received this message because you are subscribed to the Google Groups "runway-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to runway-dev+unsubscribe@googlegroups.com.
To post to this group, send email to runwa...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/runway-dev/2abc9f86-7035-44a5-9fa8-01e7bbe73b0c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.