DPlot Forum Index DPlot
http://www.dplot.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Precision problem ???

 
Post new topic   Reply to topic    DPlot Forum Index -> Basic
View previous topic :: View next topic  
Author Message
shashank



Joined: 20 Jun 2004
Posts: 2

PostPosted: Sun Jun 20, 2004 6:50 pm    Post subject: Precision problem ??? Reply with quote

I'm calling DPLOTLIB functions as ret = DPlot_Plot(d, x(0), y(0), cmds) from my vb program.

The problem is I need to plot date and time on X axis. But the interface only allows SINGLE but for time part I need to send double.

e.g. for Jan 15 2004 + time component, I need to send 38001.583 but I cannot send this number using Single.

Am I doing something wrong here? If not is there a work around?

thanks a llot
shashank
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Sun Jun 20, 2004 10:09 pm    Post subject: Reply with quote

I recently added double-precision versions of all the functions that take data array arguments. See the readme.pdf included with the DLL. None of the VB examples call those functions, but there isn't much to it. You want

ret = DPlot_Plot8(d, x(0), y(0), cmds)

where x and y are declared as Double. You'll also need to add

Declare Function DPlot_Plot8 Lib "dplotlib" (ByRef d As DPLOT, ByRef x As Double, ByRef y As Double, ByVal cmds As String) As Long

in a public module (in the DPLOTLIB VB examples the DPLOTLIB declarations are in GLOBAL.BAS, which is as good a place as any).
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
shashank



Joined: 20 Jun 2004
Posts: 2

PostPosted: Tue Jun 22, 2004 9:01 pm    Post subject: Reply with quote

thanks.that works.

shashank
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DPlot Forum Index -> Basic All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group