Update contrib.
1 // Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32test\math\t_fltcl.cpp
15 // Class member functions for T_FLOAT.CPP
16 // T_FLOAT.CPP split into header files because there seems to be too much static
17 // data for GCC compiler
24 RtoB_TEST::RtoB_TEST()
28 format.iType=KRealFormatGeneral;
29 format.iWidth=KDefaultRealWidth;
32 format.iPoint=locale.DecimalSeparator();
33 format.iTriad=locale.ThousandsSeparator();
38 RtoB_TEST::RtoB_TEST(TReal aNum,TInt aType,TInt aWidth,TInt aDecimals,TChar aPoint,TChar aTriad,TInt aTrilen,const TText* aRes)
44 format.iPlaces=aDecimals;
47 format.iTriLen=aTrilen;
51 ERR_TEST::ERR_TEST(TReal aNum,TInt aType,TInt aWidth,TInt aDecimals,TChar aPoint,TChar aTriad, TInt aTrilen,const TText* aRes,TInt aErr)
55 rtob.format.iType=aType;
56 rtob.format.iWidth=aWidth;
57 rtob.format.iPlaces=aDecimals;
58 rtob.format.iPoint=aPoint;
59 rtob.format.iTriad=aTriad;
60 rtob.format.iTriLen=aTrilen;
65 CALC_TEST::CALC_TEST(const TDesC& aDes,TInt aType,TInt aWidth,TInt aDecimals,TChar aPoint,TChar aTriad,TInt aTrilen,const TText* aRes)
69 iFormat.iWidth=aWidth;
70 iFormat.iPlaces=aDecimals;
71 iFormat.iPoint=aPoint;
72 iFormat.iTriad=aTriad;
73 iFormat.iTriLen=aTrilen;