Wolfgang,
these function don't solve problem. For example:
x=14.144966
Round(x,2) will be 14.14
and RoundZ(x) will be 14.45.
To get the correct result of multiple multiplication of a non-integer values, we need round after each multiplication.
Piotr
Search found 131 matches
- Tue Aug 15, 2023 2:08 am
- Forum: Xbase++ 2.0
- Topic: Malfunction round()
- Replies: 5
- Views: 8277
- Mon Aug 14, 2023 3:50 am
- Forum: Xbase++ 2.0
- Topic: Malfunction round()
- Replies: 5
- Views: 8277
Re: Malfunction round()
Update:
when you round intermediate results, like:
Round(Round(0.82*0.15,4)*115.00 ,2)
the result is correct: 14.15
Look like it's again the result of a binary representation of the non-integer value (like 14.15 = 14.1499999999999999999...)
Regards
Piotr
when you round intermediate results, like:
Round(Round(0.82*0.15,4)*115.00 ,2)
the result is correct: 14.15
Look like it's again the result of a binary representation of the non-integer value (like 14.15 = 14.1499999999999999999...)
Regards
Piotr
- Mon Aug 14, 2023 3:25 am
- Forum: Xbase++ 2.0
- Topic: Malfunction round()
- Replies: 5
- Views: 8277
Malfunction round()
Hi,
in some cases the function Round() gives wrong result. For example:
0.82*0.15*115.00 = 14.145
but round() of these value:
Round(0.82*0.15*115.00 ,2) gives 14.14 instead 14.15 !!!
Piotr
in some cases the function Round() gives wrong result. For example:
0.82*0.15*115.00 = 14.145
but round() of these value:
Round(0.82*0.15*115.00 ,2) gives 14.14 instead 14.15 !!!
Piotr
- Thu Jul 20, 2023 11:44 pm
- Forum: eXpress++ Support
- Topic: I NEED A UNIQUE NUMBER GENERATOR FUNCTION
- Replies: 8
- Views: 7724
Re: I NEED A UNIQUE NUMBER GENERATOR FUNCTION
Hi Joe, it depends on the scale of application of this uniqueness. If it's global, you need to use UUID. In Xbase++ you have UuidCreate() and UuidToChar() which convert binary uuid to characters (0-9 and a-f), then you need (self) convert a-f characters to value (with function ASC()) - but this will...
- Mon Jun 26, 2023 11:57 pm
- Forum: eXpress++ Support
- Topic: XML Signature
- Replies: 17
- Views: 30965
Re: XML Signature
Diego,
please install these setup.exe and runtime.msi from Alaska logged as administrator and logged as end user. This will solve your problem.
Piotr
please install these setup.exe and runtime.msi from Alaska logged as administrator and logged as end user. This will solve your problem.
Piotr
- Sun May 14, 2023 10:38 pm
- Forum: Zen and the art of Software Maintenance
- Topic: Another Birthday!
- Replies: 4
- Views: 11696
Re: Another Birthday!
All the best, Roger, and most of all good health!
- Fri Mar 24, 2023 2:43 am
- Forum: eXpress++ Support
- Topic: CHILKAT
- Replies: 6
- Views: 4625
Re: CHILKAT
Hi Miguelon, you can try something like this: zip:=CreateObject("Chilkat_9_5_0.Zip") zip:NewZip(cArcFile) zip:PasswordProtect:=1 zip:EncryptPassword:=m_sigha() * capture callback slots zip:=zip:dynamicCast("ActiveXObject") FOR i := 1 TO LEN(aFileList) IF oPrzerwanoSignal:wait(1) // waiting for user'...
- Sun Jan 22, 2023 11:33 pm
- Forum: Xbase++ Support
- Topic: Information about EXE version
- Replies: 5
- Views: 8943
Re: Information about EXE version
Jimmy,
thanks for your tips. What I need is not only display this information but read into variable, like LoadResource(1,XPP_MOD_EXE,RES_VERSION). I will try
Piotr
thanks for your tips. What I need is not only display this information but read into variable, like LoadResource(1,XPP_MOD_EXE,RES_VERSION). I will try
Piotr
- Fri Jan 20, 2023 1:45 am
- Forum: Xbase++ Support
- Topic: Information about EXE version
- Replies: 5
- Views: 8943
Information about EXE version
Hi,
how can I read from one Xbase application information about version of another Xbase application on the sam folder (another EXE file, compiled with ARC file with VERSION information)?
Piotr
how can I read from one Xbase application information about version of another Xbase application on the sam folder (another EXE file, compiled with ARC file with VERSION information)?
Piotr
- Tue Nov 22, 2022 11:49 pm
- Forum: Xbase++ 2.0
- Topic: How generate PDF as variable?
- Replies: 2
- Views: 4233
Re: How generate PDF as variable?
Hi Roger,
thanks for you tip - this way I know. But I search any way without creating a file. I find a DynamicPDF library, who can do it, but it's too expensive only for this purpose.
Regards
Piotr
thanks for you tip - this way I know. But I search any way without creating a file. I find a DynamicPDF library, who can do it, but it's too expensive only for this purpose.
Regards
Piotr