The iffgetsca() function takes two arguments: the first is a character string (up to 128 characters) that names an existing IFEFFIT scalar (following the naming rules outlined in chapter 3), and the second is a double precision variable. The effect is to retrieve the value of the named IFEFFIT scalar and put it into the provided Fortran variable. If the scalar does not exist in the IFEFFIT session, the value will be set to 0.
iffgetsca() always returns 0.
i = ifeffit(' set var = sqrt(100.0)')
i = iffgetsca('var', x)
print*, ' x = ', x
would show the value 10.0.