Search found 19 matches

by rko
Wed Oct 03, 2012 4:13 pm
Forum: Coding Questions
Topic: floating point problem - version 5 beta
Replies: 13
Views: 2193

Re: floating point problem - version 5 beta

i be damned. now i don't know what to trust anymore.
by rko
Wed Oct 03, 2012 3:23 pm
Forum: General Discussion
Topic: Range of double numbers?
Replies: 2
Views: 1944

Range of double numbers?

hi,

can you plese tell me what the range of double is - for example like "8 bytes Real numbers with an approximate range of 4.19E-307 to 1.67E+308"

thanx
by rko
Wed Oct 03, 2012 3:21 pm
Forum: Coding Questions
Topic: floating point problem - version 5 beta
Replies: 13
Views: 2193

Re: floating point problem - version 5 beta

well your function will produce 0.0 with large numbers and that does make it unusable.
i maybe understanding a comment from above wrong, but i get the feeling, that NUMBER+E20 is the upper limit for calculations with purebasic. i am not expecting mathematica or a calculator, but when there are ...
by rko
Wed Oct 03, 2012 2:24 pm
Forum: Coding Questions
Topic: floating point problem - version 5 beta
Replies: 13
Views: 2193

Re: floating point problem - version 5 beta

i might not understand you but

help of purebasic : Double .d 8 bytes unlimited - and that means it should calculate. #

from a modula compiler help: LONGREAL 8 bytes Real numbers with an approximate range of 4.19E-307 to 1.67E+308 and an accuracy of about 16 decimal digits
and with function ...
by rko
Wed Oct 03, 2012 1:53 pm
Forum: Coding Questions
Topic: floating point problem - version 5 beta
Replies: 13
Views: 2193

Re: floating point problem - version 5 beta

yes it is - but it returns false results for large numbers:


1200.0 = Mod(3.528142089298538E20, 3732.0)
2872 = Mod(3.528142089298538E20, 3732.0) with a calculator
with the function


Procedure.d fmod(left.d, right.d)
Protected quota.q
quota = left - (right * (left/right))
ProcedureReturn quota ...
by rko
Wed Oct 03, 2012 1:31 pm
Forum: Coding Questions
Topic: floating point problem - version 5 beta
Replies: 13
Views: 2193

Re: floating point problem - version 5 beta

well, in calculations a number such as 352814208929853800000.0 results and the following function will not be able to calculate its correct value:


Procedure.d fmod(left.d, right.d)
Protected quota.q
quota = left - (right * (left/right))
ProcedureReturn quota
EndProcedure


the call to the ...
by rko
Wed Oct 03, 2012 12:55 pm
Forum: Coding Questions
Topic: floating point problem - version 5 beta
Replies: 13
Views: 2193

floating point problem - version 5 beta

ssss.d = 352814208929853800000.0 <------- numerical overflow number to big
Double .d 8 bytes unlimited

this should work. it does work with modula-2, freepascal and c. for this reason i can not get an fmod to work.

thanx.
by rko
Sun Nov 07, 2010 4:14 pm
Forum: Coding Questions
Topic: Interbase & Firebird : Wrapper Problem
Replies: 75
Views: 22586

Re: Interbase & Firebird : Wrapper Problem

sorry, haven't be arround for longer time. the table failed with blobs and i think i fixed the problem. i added some stuff to read metadata, that i needed to write some schema data. probably the list with the meta data should be hashes - but it worked for this way. i post the whole thing again ...
by rko
Wed Sep 22, 2010 3:50 pm
Forum: Coding Questions
Topic: Creating thumbnails from a pdf
Replies: 2
Views: 1532

Re: Creating thumbnails from a pdf

thanx for your answer.
is there also something one can use that is not gnu. as i understand it, i could not sell my program anymore, if i use their dll's.
by rko
Wed Sep 22, 2010 8:51 am
Forum: Coding Questions
Topic: Creating thumbnails from a pdf
Replies: 2
Views: 1532

Creating thumbnails from a pdf

hi,

does anybody know how to make thumbnails from an existing pdf file without using adobe?
i am thinking of a free library such as libharu, purepdf etc.

thank you in advance
rko
by rko
Tue Sep 07, 2010 9:53 pm
Forum: Coding Questions
Topic: filelocking
Replies: 6
Views: 874

Re: filelocking

more than one process will open a file and read and write it. i would ike to get something like share and un/lock region.
by rko
Tue Sep 07, 2010 8:23 pm
Forum: Coding Questions
Topic: filelocking
Replies: 6
Views: 874

filelocking

hi all,
is there anyway to do filelocking with pb? if not, is there some src for the win api that allows that?

thank in advance for any help.
by rko
Mon Apr 12, 2010 7:46 am
Forum: Coding Questions
Topic: Interbase & Firebird : Wrapper Problem
Replies: 75
Views: 22586

Re: Interbase & Firebird : Wrapper Problem

i took liberty to add some stuff to your code. seems like the wrapper crashes on tables with a large number of columns and data.
does someone have some experience with that or even better a bugfix?

rko


#FB_Client = 1
Global sLibrary.s
Global EndOfLine.s
Global lErrorFunction
Global fb ...
by rko
Sun Jun 07, 2009 1:55 pm
Forum: Tricks 'n' Tips
Topic: Dynamic LinkedList / Array of LinkedList
Replies: 34
Views: 16486

help

hi,

i am using 4.31 and seems like i am to stupid to make the examples (postings) work.

Structure Column
Column.s
Type.l
InitList.q
EndStructure

Structure Row
Row.s
InitList.q
EndStructure

Structure Lister
Columns.q
Rows.q
test.s
EndStructure


in this senenario the InitList's are ...
by rko
Fri Dec 26, 2008 7:37 am
Forum: Applications - Feedback and Discussion
Topic: Another OOP PreCompiler
Replies: 53
Views: 49717

hi,
i see this for the first time. it nead. is there any chance that the methods be in the class? ex.:

Class(MemClass)
*mem1
*mem2
; Init memory

Method InitObject() ; <- NewObject calling InitObject
With *this
Debug "InitObject: AllocateMemory."
\mem1 = AllocateMemory(10*1024)
\mem2 ...