[Implemented] Doubles
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
[Implemented] Doubles
Restored from previous forum. Originally posted by Paul.
Hey Fred,
When are we going to get accurate Floats... or Doubles ??
(and a Printer library?)
Edited by - paul on 29 January 2002 16:09:13
Hey Fred,
When are we going to get accurate Floats... or Doubles ??
(and a Printer library?)
Edited by - paul on 29 January 2002 16:09:13
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Manolo.
The exact result is=26.6282
Then if the precision is to 2 decimals, the correct result is: 26.63
Manolo
And this other...Take a look at this Fred...
a.f=39.43
b.f=36.95
c.f=35.57
d.f=35.07
e.f=29.90
total.f=a+b+c+d+e
MessageRequester("Right",StrF(total,2),0)
total.f=39.43+36.95+35.57+35.07+29.90
MessageRequester("Wrong",StrF(total,2),0)
Code: Select all
OpenConsole()
a.f=6.31
b.f=4.22
PrintN(StrF(a*b,2))
a$=Input()
Then if the precision is to 2 decimals, the correct result is: 26.63
Manolo
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Manolo.
The exact result is=26.6282
Then if the precision is to 2 decimals, the correct result is: 26.63
Manolo
[/quote]
a.f=6.31
b.f=4.22
PrintN(StrF(a*b,0))----> result with 0 decimals
Sniffffff. Result is: 26 (No rounded to superior) result correct: 27
Manolo
Code: Select all
OpenConsole()
a.f=6.31
b.f=4.22
PrintN(StrF(a*b,2))
a$=Input()
Then if the precision is to 2 decimals, the correct result is: 26.63
Manolo
[/quote]
a.f=6.31
b.f=4.22
PrintN(StrF(a*b,0))----> result with 0 decimals
Sniffffff. Result is: 26 (No rounded to superior) result correct: 27
Manolo
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by GorkaTRON.
(Lo siento Manolo por el plagio)Ok Fred,may be = not sure.
Fred - AlphaSND
I can wait another bit of time.
But, please, remember that this is very important for you star product.
Hapy weekend.
Manolo
Oops. I don't know post new messages...
When will Doubles be available? I think it's very important for a good compiler Double support and it's very necessary for technical software, I use PureBasic for scientific programs and I don't have enough resolution with floats. I hope doubles will be available on 3.1 version.
^^GorkaTRON^^
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by nico.
Yeah Fred , PLEASE do!
I also need it BADLY!!!
Im making a euro calculator, and i have to work with numbers like 2.20371
Please , if those doubles are the solution of beeing able to work/calculate
with more numbers behind the comma/point , then please make it if possible!
Nico
- = Registered Purebasic User = -
Yeah Fred , PLEASE do!
I also need it BADLY!!!
Im making a euro calculator, and i have to work with numbers like 2.20371
Please , if those doubles are the solution of beeing able to work/calculate
with more numbers behind the comma/point , then please make it if possible!
Nico
- = Registered Purebasic User = -
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm