View previous topic :: View next topic |
Author |
Message |
shashank
Joined: 20 Jun 2004 Posts: 2
|
Posted: Sun Jun 20, 2004 6:50 pm Post subject: Precision problem ??? |
|
|
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 |
|
|
DPlotAdmin Site Admin
Joined: 24 Jun 2003 Posts: 2310 Location: Vicksburg, Mississippi
|
Posted: Sun Jun 20, 2004 10:09 pm Post subject: |
|
|
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 |
|
|
shashank
Joined: 20 Jun 2004 Posts: 2
|
Posted: Tue Jun 22, 2004 9:01 pm Post subject: |
|
|
thanks.that works.
shashank |
|
Back to top |
|
|
|
|
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
|