Search found 456 matches: decimal

Return to advanced search

ADO anchura campos numéricos

... BIGINT(20) NULL DEFAULT NULL, `CLIENTE` VARCHAR(25) NULL DEFAULT NULL COLLATE 'utf8_spanish_ci', `FECHA` DATE NULL DEFAULT NULL, `IMPORTE` DECIMAL(11,2) NULL DEFAULT NULL, `BANCO1` VARCHAR(8) NULL DEFAULT NULL COLLATE 'utf8_spanish_ci', `BANCO` TINYINT(2) NULL DEFAULT NULL, `APUNTE` INT(5) ...
by gmart1
Tue Jun 26, 2018 4:57 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ADO anchura campos numéricos
Replies: 4
Views: 1013

Re: Funcion I2BIN(n)

... vez esta propuesta también te guste, está hecha en C y va muy rápida: Hb_decToBin( numDecimal, nAnchoDelBin ) -> cadena representando el numero decimal pasado a binario con el ancho pasado en el segundo parametro; Ej. alert( Hb_decToBin( 100, 8 ) ) // Se ve en pantalla 01100100 void decToBin( ...
by xmanuel
Fri Jun 15, 2018 9:37 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Funcion I2BIN(n)
Replies: 10
Views: 2009

Re: Funcion I2BIN(n)

... ), ; nBase, ; // 2 to 36. Default 10 nLength, ; cPadChar ) // default Space. nBase (also known as RADIX in math) is for Binary : 2, Octal : 8, Decimal : 10, Hex : 16. We can also choose any other number. Example ? NTOC( 312, 2, 16, "0" ) --> "0000000100111000"
by nageswaragunupudi
Fri Jun 15, 2018 9:31 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Funcion I2BIN(n)
Replies: 10
Views: 2009

Re: Autoincrement field for DBFCDX

... DBF, which requires 4 bytes of storage. That is the reason why we see 4 as the field length. The maximum value is nearly 4 billion. Expressed in decimal notation its length is 10.
by nageswaragunupudi
Tue Mar 27, 2018 7:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Autoincrement field for DBFCDX
Replies: 9
Views: 1921

Re: Strange error making some calculations

... from this? 0.1 for sure. Well, using floating-point you could get 0.100000000001 or 0.099999999999 or similar results instead. If you hide the decimals you will se 0.1 or 0.0 according to the actual result. If you round the result you will get the correct one. But why floating-point acts in ...
by Enrico Maria Giordano
Thu Mar 22, 2018 11:07 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Strange error making some calculations
Replies: 9
Views: 1882

Lectura de tarejtas Sin contacto 1k MIdfare.

... ini para escribir los datos a grabar en la tarjeta midfare) , porque porque es ma facil lavantar los datos para dll en un .ini que estaran en decimal no hay que traducir nada a hexadecimal o viceversa todo lo hago en el DLL. Ejemplo. function leerSC() Local _Vueltas:=0 LOCAL cDllName:="SCLib.DLL" ...
by Busmatic_wpb
Mon Feb 12, 2018 2:17 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Lectura de tarejtas Sin contacto 1k MIdfare.
Replies: 0
Views: 802

Cual es el PICTURE Para numeros solo positivos?

Hola.

Cual es el picture para los numeros solo positivos.
que deje ingresar decimal pero solo positivos?

"@E 99999,99" he probado este y no da.

gracias.
by goosfancito
Sat Feb 03, 2018 3:29 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Cual es el PICTURE Para numeros solo positivos?
Replies: 1
Views: 819

Harbour and floats

... obvious answer! For those of you that know, how does Harbour represent floats? Does it have any kind of limited-precision or arbitrary-precision decimal type? I need something either like the limited precision decimal type in C# or something with arbitrary precision like Java's BigDecimal. I ...
by dissonantdev
Sat Jan 27, 2018 4:13 am
 
Forum: Off Topic / Otros temas
Topic: Harbour and floats
Replies: 4
Views: 1330

Re: Xbrowse Problem to round cent

XBrowse does not total wrongly.
Probably the values of each row have more than 2 decimal places.
You need to round off values of each row to 2 decimal places using round( val, 2 )
Then the totals match correctly
by nageswaragunupudi
Mon Jan 15, 2018 2:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Xbrowse Problem to round cent
Replies: 1
Views: 559

Re: No existe DEFAULT en Harbour

... nDecimal:=( (nCantidad / EURO)-nEntero ) * 1000 c2Decimales:=SUBSTR(STR(nDecimal,3),1,2) c3Decimal:=SUBSTR(STR(nDecimal,3),3,1) // cogemos el 3er decimal IF VAL(c3Decimal) >= 5 // sumar 0,01 nDecimal:=(VAL(c2Decimales))/100 + 1/100 ELSE nDecimal:=VAL(c2Decimales)/100 ENDIF nCantidad:=nEntero+nDecimal ...
by jvtecheto
Sat Jan 13, 2018 3:08 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: No existe DEFAULT en Harbour
Replies: 12
Views: 2312

Re: access to window via its :hwnd

... reference or pointer or something, so that the object created within babu.prg is visible in babudll.prg? Using string, date, integer, boolean and decimal data types work perfectly. thanks in advance for any guidance.
by don lowenstein
Fri Jan 05, 2018 11:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: access to window via its :hwnd
Replies: 10
Views: 1974

Re: DLL32 definition with double parameter type

... the numeric, integer, short integer, double, CurDouble, RowVersion, or auto-increment field. It is possible to either overflow the value or lose decimal precision by using this function. If more precision is desired, use AdsGetDouble. When using this function to retrieve an auto-increment value, ...
by Massimo Linossi
Mon Dec 18, 2017 1:00 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DLL32 definition with double parameter type
Replies: 23
Views: 3518

New FTDN November/Noviembre (FWH 17.11)

... specified (eg. arrays, hashes, excel ranges, etc) the function cValToChar() is used to display the value. As a result numeric values having more decimals are rounded off to 2 decimals (or SET DECIMALS TO). Now the new function cNumToStr() is used which displays all the decimals upto a maximum ...
by Antonio Linares
Mon Nov 27, 2017 7:21 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN November/Noviembre (FWH 17.11)
Replies: 0
Views: 1494

Re: problem with a calculation

When you calculate Rit. d'acconto, round of the result to 2 decimal places.
Eg Rit... := Round( <calculation>, 2 )
by nageswaragunupudi
Mon Nov 27, 2017 5:29 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: problem with a calculation
Replies: 8
Views: 1441

Re: GetExcelRange and decimals

Thanks ,
but I've already tried set decimal to in harbour.


Maurizio
by Maurizio
Tue Nov 21, 2017 4:28 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: GetExcelRange and decimals
Replies: 12
Views: 1231
PreviousNext

Return to advanced search