Search found 453 matches: decimal

Return to advanced search

Re: PROBLEMA CON FORMATO DE FECHA MYSQL ADO

... varchar(20) NOT NULL default '', `PERIODO` varchar(6) default ' ', `POLIZA` varchar(13) default ' ', `CONCEPTO` varchar(100) default ' ', `CARGOS` decimal(14,2) default '0.00', `ABONOS` decimal(14,2) default '0.00', `FECHA` date NOT NULL, `FECHACAP` date NOT NULL, `HORA` varchar(8) NOT NULL, `CONCEPTO2` ...
by Marco Augusto
Thu Oct 27, 2022 6:44 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: PROBLEMA CON FORMATO DE FECHA MYSQL ADO
Replies: 11
Views: 1191

Re: PROBLEMA CON FORMATO DE FECHA MYSQL ADO

... Field Type Null Key Default Extra LLAVE varchar(20) NO PRI PERIODO varchar(6) YES MUL POLIZA varchar(13) YES MUL CONCEPTO varchar(100) YES CARGOS decimal(14,2) YES 0 ABONOS decimal(14,2) YES 0 FECHA date NO MUL FECHACAP date NO HORA varchar(8) NO CONCEPTO2 varchar(100) YES FECHA2 date YES 0000-00-00 ...
by Marco Augusto
Thu Oct 27, 2022 1:20 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: PROBLEMA CON FORMATO DE FECHA MYSQL ADO
Replies: 11
Views: 1191

Re: prices breakdown

If Is 0.40 it's no possibile

Any value with decimal part .40 is not possibe, eg. 100.40, 90.40. etc.
by nageswaragunupudi
Mon Jun 27, 2022 3:29 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: prices breakdown
Replies: 8
Views: 599

Re: USAR IMPRESORA FISCAL BERMATECH EN VENEZUELA EN PDV

... //Vende ítem DLL32 FUNCTION BmVendItem( Codigo AS STRING,; Descricao AS STRING,; Aliquota AS STRING,; TpQte AS STRING,; Quantid AS STRING,; Decimal AS 7 ,; ValUnit AS STRING,; TpDesc AS STRING,; ValDesc AS STRING ) AS LONG PASCAL ; FROM "Bematech_FI_VendeArticulo" LIB oDp:nBemaDLL ...
by jnavas
Wed Apr 27, 2022 9:57 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: USAR IMPRESORA FISCAL BERMATECH EN VENEZUELA EN PDV
Replies: 21
Views: 8605

Re: Coger dato real de excel (SOLUCIONADO)

Gracias por tu interés, pero el truco era coger de la celda la propiedad :text y no :value Lo incomodo es que :text podria contener coma decimal o punto decimal, dependiendo del formato de la celda. Y averiguar eso podria ser una locura. Asi que hice dos cosas: 1º Asumir que todo lleva coma ...
by hmpaquito
Sun Apr 03, 2022 8:00 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Coger dato real de excel (SOLUCIONADO)
Replies: 2
Views: 303

Re: CHARICON lista de codigos validos - para Cristobal ??

... que confundas esos "números más altos" con los glyphs, propios de sistemas operativos Win 8/10 para los que se utilizan código hexadecimales, aunque suelo usar su conversión a decimal, que aprovechan los tipos de letra incluídos en estos sistemas: segoe ui symbol, Segoe MDL2 Assets ...
by cnavarro
Sat Dec 04, 2021 12:06 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: CHARICON lista de codigos validos - para Cristobal ??
Replies: 9
Views: 1788

Re: Campos empaquetados en archivo de texto

Antonio Linares wrote:Miguel,

> Importe: 0 0 88 ED 1B C = 52.552,70

Estas completamente seguro de eso ?

En decimal obtenemos: 0, 0, 136, 237, 27, 12

el 12 lo descartamos porque es el signo. Pero como podemos obtener 52.552,70 usando 136, 237 y 27 ???

Buenos días Antonio... si es 52.552,70 totalmente seguro.
by El Loco
Sun Oct 17, 2021 2:20 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Campos empaquetados en archivo de texto
Replies: 47
Views: 4460

Re: Campos empaquetados en archivo de texto

Miguel,

> Importe: 0 0 88 ED 1B C = 52.552,70

Estas completamente seguro de eso ?

En decimal obtenemos: 0, 0, 136, 237, 27, 12

el 12 lo descartamos porque es el signo. Pero como podemos obtener 52.552,70 usando 136, 237 y 27 ???
by Antonio Linares
Sun Oct 17, 2021 8:37 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Campos empaquetados en archivo de texto
Replies: 47
Views: 4460

Re: Campos empaquetados en archivo de texto

Usando comp-3 el valor 12.345 queda como 12 34 5C y el valor -1.2 queda como 01 2D (C es positivo y D negativo)

estamos cerca :-)
https://stackoverflow.com/questions/795523/interpreting-comp-3-packed-decimal-fields-into-numeric-values
by Antonio Linares
Sat Oct 16, 2021 7:15 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Campos empaquetados en archivo de texto
Replies: 47
Views: 4460

Re: Campos empaquetados en archivo de texto

... en C son totalmente nulos De hecho no sé por donde empezar. #include <Windows.h> #include <hbapi.h> HB_FUNC( Pack2Text ) { private Decimal Unpack(byte[] inp, int scale) { long lo = 0; long mid = 0; long hi = 0; bool isNegative; // this nybble stores only the sign, not a digit. // ...
by El Loco
Wed Oct 13, 2021 3:43 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Campos empaquetados en archivo de texto
Replies: 47
Views: 4460

Re: Campos empaquetados en archivo de texto

... Aqui tienes unas funciones en C# y VB que facilmente (son pequeñas) puedes pasar a Harbour: https://newbedev.com/c-convert-comp-3-packed-decimal-to-human-readable-value https://stackoverflow.com/questions/142972/c-convert-comp-3-packed-decimal-to-human-readable-value
by Antonio Linares
Tue Oct 12, 2021 8:19 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Campos empaquetados en archivo de texto
Replies: 47
Views: 4460

Re: Decimal detection

... <nDecimals>) --> nRounded Arguments <nNumber> is the numeric value to be rounded. <nDecimals> defines the number of decimal places to retain. Specifying a negative <nDecimals> value rounds whole number digits. Returns ROUND() returns a numeric value. Description ...
by James Bott
Sat Oct 09, 2021 7:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Decimal detection
Replies: 10
Views: 1347

Re: Decimal detection

... '122.' I should point out that technically 122.00000 is not the same as 122. "122.00000" implies that it is accurate to the nearest 5th decimal place (one hundred thousandth of a unit). And 122 implies it is accurate to the nearest whole number. I know that database number formats aren't ...
by James Bott
Sat Oct 09, 2021 6:53 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Decimal detection
Replies: 10
Views: 1347

Re: Decimal detection

Code: Select all  Expand view
cNumToStr( nVal, [lEuropean], [lThouSep] )

2nd and 3rd parameters default to settings by FWNumFormat(...)
by nageswaragunupudi
Mon Sep 27, 2021 11:00 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Decimal detection
Replies: 10
Views: 1347

Re: Decimal detection

Nages, cNum := cNumToStr( nValue, .f., .f. ) Wow, one line, I like that! Less is more. I note that in my version of FWH 1805, it is not listed in the documentation, but the function is in version 1805. You might want to check to make sure it is in the documentation for the latest version. Please tel...
by James Bott
Mon Sep 27, 2021 10:47 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Decimal detection
Replies: 10
Views: 1347
PreviousNext

Return to advanced search