Results 1 to 15 of 15
Hybrid View
-
16th March 2007 23:57 #1
. , :
. 1.51*5.0 7.54999999... , , ?Code:... double a=1.51,b[9],i; for (i=0.0;i<9.0;i++) b[i]=a*i; ...
, .Fujistu Lifebook E756 | Core i7-6500U / 400MHz-3.1GHz | 8 GB DDR4-2133 | Samsung PM871 / 256 GB SSD | 15" 1920x1080 | Manjaro Linux + kernel 4.19
-
16th March 2007 23:59 #2
-
17th March 2007 02:13 #3Registered User
Join Date: Mar:2004
Location:
Posts: 3,748
: 5-6, - "" . "" , , - ...
( , ), (, ), ...
, : .
( , 3-4 )
-
17th March 2007 02:46 #4
,
Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others
-
17th March 2007 19:53 #5
, - , . , 4 - . , .

, .
! !Fujistu Lifebook E756 | Core i7-6500U / 400MHz-3.1GHz | 8 GB DDR4-2133 | Samsung PM871 / 256 GB SSD | 15" 1920x1080 | Manjaro Linux + kernel 4.19
-
17th March 2007 20:28 #6
-
19th March 2007 16:42 #7
, . , , , , ... , , .
, , , .Fujistu Lifebook E756 | Core i7-6500U / 400MHz-3.1GHz | 8 GB DDR4-2133 | Samsung PM871 / 256 GB SSD | 15" 1920x1080 | Manjaro Linux + kernel 4.19
-
19th March 2007 16:50 #8
-
19th March 2007 17:17 #9, . .
"640K ught to be enough for anybody" - Bill Gates, 1981
::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel
-
20th March 2007 21:16 #10
, , , .
Win dev-cpp .
1.510000 * 5.000000 = 7.550000Code:#include <stdio.h> #include <conio.h> int main(void) { double a,b,c; a = 1.51; b = 5.0; c = a * b; printf("%lf * %lf = %lf\n", a, b, c); getch(); return 0; }
---
Code:double a=1.51,b[9],i; for (i=0.0;i<9.0;i++) b[i]=a*i;
17 *** array subscript is not an integer
i int.
0.000000
1.510000
3.020000
4.530000
6.040000
7.550000
9.060000
10.570000
12.080000
.Running Linux from 2001
-
20th March 2007 23:23 #11
-
20th March 2007 23:17 #12
- GCC, , , ...
Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others
-
20th March 2007 23:35 #13
1.51000000000000000888 * 5.00000000000000000000 = 7.54999999999999982236
Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others
-
21st March 2007 01:22 #14
4eRNoBi, . .
P.S. " " . truncate- double- int . 3.9999999999999, 4, 3. , .Last edited by baracuda; 21st March 2007 at 01:47.




Reply With Quote


Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in