blob: 7f3c84d386bf9c51bf11431d00f56b6f2bee77aa [file] [log] [blame]
dburgess82c46ff2011-10-07 02:40:51 +00001/*
2* Copyright 2009 Free Software Foundation, Inc.
3*
4*
5* This software is distributed under the terms of the GNU Affero Public License.
6* See the COPYING file in the main directory for details.
7*
8* This use of this software may be subject to additional restrictions.
9* See the LEGAL file in the main directory for details.
10
11 This program is free software: you can redistribute it and/or modify
12 it under the terms of the GNU Affero General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
15
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU Affero General Public License for more details.
20
21 You should have received a copy of the GNU Affero General Public License
22 along with this program. If not, see <http://www.gnu.org/licenses/>.
23
24*/
25
26#include "F16.h"
27
28
29#include <iostream>
30
31using namespace std;
32
33int main(int argc, char **argv)
34{
35
36 F16 a = 2.5;
37 F16 b = 1.5;
38 F16 c = 2.5 * 1.5;
39 F16 d = c + a;
40 F16 e = 10;
41 cout << a << ' ' << b << ' ' << c << ' ' << d << ' ' << e << endl;
42
43 a *= 3;
44 b *= 0.3;
45 c *= e;
46 cout << a << ' ' << b << ' ' << c << ' ' << d << endl;
47
48 a /= 3;
49 b /= 0.3;
50 c = d * 0.05;
51 cout << a << ' ' << b << ' ' << c << ' ' << d << endl;
52
53 F16 f = a/d;
54 cout << f << ' ' << f+0.5 << endl;
55}