Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

C/C++ API Documentation | 2025.1

# StrNum::Set( int )

Set a `StrNum`'s value.

Virtual? | No |
Class | `StrNum` |
Arguments | `int v` | the number to store
Returns | `void` |

## Notes

A `StrNum` always stores numbers using base ten.

## Example

Copy

    #include &lt;iostream&gt;
    #include &lt;stdhdrs.h&gt;
    #include &lt;strbuf.h&gt;

    int main( int argc, char **argv )
    {
        StrNum sn;
        sn.Set ( 1666 );
        cout &lt;&lt; "sn.Text() returns \"" &lt;&lt; sn.Text() &lt;&lt; "\"\n";
    }

Executing the preceding code produces the following output:

    sn.Text() returns "1666"

Your search for returned results