swig/Examples/scilab/constants/runme.sci
William S Fulton d3a54e50f8 Have just one Scilab constants example
Same example as other languages, but using %scilabconst(1)
2014-09-02 20:29:45 +01:00

14 lines
426 B
Scilab

lines(0);
ilib_verbose(0);
exec loader.sce;
example_Init();
printf("\nTest constants\n");
printf("ICONST = %i (should be 42)\n", ICONST);
printf("FCONST = %5.4f (should be 2.1828)\n", FCONST);
printf("SCONST = ''%s'' (should be ''Hello World'')\n", SCONST);
printf("EXPR = %5.4f (should be 48.5484)\n", EXPR);
printf("iconst = %i (should be 37)\n", iconst);
printf("fconst = %3.2f (should be 3.14)\n", fconst);
exit