/*[]------------------------------------------------------------[]*/
/*|                                                              |*/
/*|     mnsprec.cpp                                              |*/
/*|                                                              |*/
/*|     Predefined manipulators                                  |*/
/*|         smanip_int setprecision( int )                       |*/
/*|                                                              |*/
/*[]------------------------------------------------------------[]*/


/*
 *      C/C++ Run Time Library - Version 6.0
 *
 *      Copyright (c) 1990, 1993 by Borland International
 *      All Rights Reserved.
 *
 */

#include <ioconfig.h>
#include <iostream.h>
#include <iomanip.h>

// set the floating-point precision to n digits

static ios _FAR & sprec(ios _FAR & i, int n)
{
    i.precision(n);
    return i;
}

smanip<int> _RTLENTRY _EXPFUNC setprecision(int n)
{
    return smanip<int>(sprec, n);
}
