Search found 83 matches: math

Return to advanced search

Re: xHarbour bug in ADO Date\Time field ( fixed )

... test it and report any problem. Thanks. Andi //------------------------ Andi YES .. In build 9444 it appears that all your changes work GREAT .. Math between DateTime variables work as well as writing the value of DateTime back to SQL tables work as well. Many Thanks Rick Lipkin
by Rick Lipkin
Mon Mar 19, 2012 3:49 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xHarbour bug in ADO Date\Time field
Replies: 7
Views: 1748

Re: xHarbour bug in ADO Date\Time field

... would hope for the sake of 'clipper' compatibility the xHarbour folks can make their new T valtype work. So far I have tested two commits and the math and comparison operators now work. Unfortunately, when the value writes back to the Ado datetime field the table stores 12:00 am only :cry: I think ...
by Rick Lipkin
Thu Feb 09, 2012 10:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xHarbour bug in ADO Date\Time field
Replies: 7
Views: 1748

Re: xHarbour bug in ADO Date\Time field

... .. xHarbour "NOW" considers this expression to be valtype T... prior to valtype D. The problem occurs where you do some math or comparison between dDate as in : nDiff := Date() - dDate or If Date() < dDate .... As you can see the datatype mismatch can be a potential ...
by Rick Lipkin
Thu Feb 09, 2012 4:56 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xHarbour bug in ADO Date\Time field
Replies: 7
Views: 1748

illegal types 'unsigned char *'

... = (unsigned char ) 0x80 >> loc; if ( hb_parl( 3 ) ) *ptr = *ptr | mask; else *ptr = *ptr & ~mask; } } hb_retl( res ); } #include "math.h" #include "stddef.h" #include <stdlib.h> #include <stdio.h> #ifndef HUGE_VAL # define HUGE_VAL HUGE #endif /*HUGE_VAL*/ ...
by kajot
Sun Oct 23, 2011 2:17 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: illegal types 'unsigned char *'
Replies: 0
Views: 514

Re: FWH32 cannot read 64bit Registry Keys

... + KEY_ENUMERATE_SUB_KEYS +  KEY_NOTIFY +  KEY_CREATE_LINK) & (~SYNCHRONIZE)) For example KEY_ALL_ACCESS is 0xF003F, which is 983103, not 63 : Math calc. explained at http://www.the-mindseye.co.uk/DllBinder/Registry_access_comments.shtml Hi, Davide
by Davide
Sat Aug 14, 2010 5:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH32 cannot read 64bit Registry Keys
Replies: 12
Views: 1862

Re: Some confusion in math result

Thanks for the reply Rao.

I think age is catching up to me :oops:

Resolved the issue easily by just temporarily increasing SET DECIMALS value
by hua
Thu Jan 07, 2010 3:53 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Some confusion in math result
Replies: 2
Views: 452

Re: Some confusion in math result

Internal value has full accuracy. What is displayed may be rounded off to 2 decimal places.

msginfo( 2957.45 / 9 ) shows 328.605556

We can use the result for further processing without losing accuracy.
by nageswaragunupudi
Thu Jan 07, 2010 3:41 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Some confusion in math result
Replies: 2
Views: 452

Some confusion in math result

Using windows calculator, 2957.45 / 9 = 328.60555555555555555555555555556. In my program I got 328.61 not the expected result of 328.605555...

What am I missing here? Using xHarbour+BCC55

TIA

p.s. Just tested in xbscript.exe by simple means of "? 2957.45/9". Got 328.61 here too
by hua
Thu Jan 07, 2010 3:25 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Some confusion in math result
Replies: 2
Views: 452

Re: Compilar en Ubuntu

... reference to `fmod' ./lib/libhbvm.a(hvm.o): In function `hb_vmPower': hvm.c:(.text+0x560d): undefined reference to `pow' ./lib/libhbrtl.a(math.o): In function `HB_FUN_EXP': math.c:(.text+0x7dd): undefined reference to `exp' ./lib/libhbrtl.a(math.o): In function `HB_FUN_LOG': math.c:(.text+0x912): ...
by Verhoven
Tue Dec 22, 2009 4:17 pm
 
Forum: FiveLinux / FiveDroid (Android)
Topic: Compilar en Ubuntu
Replies: 19
Views: 7388

Re: Google Job Puzzle...

... http://www.scrabble.org.au/words/fours.htm http://www.scrabble.org.au/words/5jxqz.htm http://www.math.toronto.edu/jjchew/scrabble/lists/common-6.html http://www.math.toronto.edu/jjchew/scrabble/lists/common-8.html ...
by Antonio Linares
Mon Sep 21, 2009 5:52 pm
 
Forum: Off Topic / Otros temas
Topic: Google Job Puzzle...
Replies: 1
Views: 448

ERROR en la generacion de HARBOUR - checkbox.prg(132)

... source\rtl\isprint.c: source\rtl\itemseri.c: source\rtl\langapi.c: source\rtl\left.c: source\rtl\len.c: source\rtl\lennum.c: source\rtl\math.c: source\rtl\maxrow.c: source\rtl\memofile.c: source\rtl\minmax.c: source\rtl\mlcfunc.c: source\rtl\mod.c: source\rtl\mouse53.c: source\rtl\mouseapi.c: ...
by jmansur
Wed Mar 25, 2009 4:07 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ERROR en la generacion de HARBOUR - checkbox.prg(132)
Replies: 1
Views: 749

Re: Migracion a HB: HB_SYMBOL_NAME_LEN

... source\rtl\isprint.c: source\rtl\itemseri.c: source\rtl\langapi.c: source\rtl\left.c: source\rtl\len.c: source\rtl\lennum.c: source\rtl\math.c: source\rtl\maxrow.c: source\rtl\memofile.c: source\rtl\minmax.c: source\rtl\mlcfunc.c: source\rtl\mod.c: source\rtl\mouse53.c: source\rtl\mouseapi.c: ...
by jmansur
Wed Mar 25, 2009 4:00 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Migracion a HB: HB_SYMBOL_NAME_LEN
Replies: 5
Views: 1200

Re: Problema GPF

Ésta es la parte de mi prg donde me sale el error.... ---------------------- #pragma BEGINDUMP #include "windows.h" #include "math.h" #include "hbapi.h" HB_FUNC( TANG ) //Aggiunta funzione aTan { hb_retnd((double) tan((double)hb_parnd(1) )); } HB_FUNC( ATN ) { hb_retnd((double) ...
by ik1mtt
Sat Feb 07, 2009 6:42 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Problema GPF
Replies: 10
Views: 1926

Re: Errore base/1094

Ciao Enrico. Ho risolto il problema aTan() in serendo queste righe: #pragma BEGINDUMP #include "windows.h" #include "math.h" #include "hbapi.h" HB_FUNC( ATN ) { hb_retnd((double) atan((double)hb_parnd(1))); } #pragma ENDDUMP Mi rimane il problema della finestra ...
by ik1mtt
Sat Jan 31, 2009 6:45 pm
 
Forum: All products support
Topic: Errore base/1094
Replies: 8
Views: 1286

... using negative numbers for points (and we must use points instead of pitch for equal-spaced fonts like Courier). In this case, the "-" sign isn't mathematical -- it doesn't mean (as math rules would suggest) that your point size gets smaller as the integer gets bigger. Just the reverse. The bigger ...
by Roger Seiler
Mon Oct 20, 2008 1:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Help : Regarding Reports & Printing using FWH
Replies: 13
Views: 2682
PreviousNext

Return to advanced search