Thread: Problem with the INTEGER function

Started: 2013-04-08 18:49:28
Last activity: 2013-04-08 22:15:37
Topics: SAC Help
Shahar Barak
2013-04-08 18:49:28
I do:

SAC> setbb a (3 / 2)
SAC> getbb a
a = 1.5
SAC> setbb b ( integer %a)
ERROR 1021: Correct number of arguments for this inline function call is 1
integer

Why dosen't this work?

Shahar*
*

  • Brian Savage
    2013-04-08 22:15:37
    Dear Shahar

    Place a space between the a and the ), or place a % after the a.

    SAC> setbb a ( 3 / 2 )
    SAC> getbb a
    a = 1.5
    SAC> setbb b ( integer %a )
    SAC> getbb b
    b = 1
    SAC> setbb b ( integer %a)
    ERROR 1021: Correct number of arguments for this inline function call is 1
    integer
    SAC> getbb b
    b = 1
    SAC>

    The parser in sac currently depends on spaces as a delimiter.

    Brian

    On Apr 8, 2013, at 2:49 PM, Shahar Barak wrote:

    I do:

    SAC> setbb a (3 / 2)
    SAC> getbb a
    a = 1.5
    SAC> setbb b ( integer %a)
    ERROR 1021: Correct number of arguments for this inline function call is 1
    integer

    Why dosen't this work?

    Shahar
    _______________________________________________
    sac-help mailing list
    sac-help<at>iris.washington.edu
    http://www.iris.washington.edu/mailman/listinfo/sac-help


16:44:40 v.22510d55