Search found 209 matches: decimals

Return to advanced search

Sacar decimales

... manera sencilla de sacar los decimales, hoy en Argentina no tienen sentido los decimales en un sistema de facturación. Probé: SET FIXED ON SET DECIMALS TO 0 sin resultado, para no modificar todo el sistema, aunque en todos lados aparezcan los decimales pero que estén en cero
by jpcavagnaro
Thu Feb 08, 2024 9:21 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Sacar decimales
Replies: 2
Views: 138

Re: I'm not asking for the moon...

... you mean something like this? https://mybergland.com/fwforum/gettest.gif No, you not understood the values are numeric ( 6 digit , 2 decimals) 1. at init see only a zero "0" at Right, so I not must see 0.00 2. when digit 12345 the get must transform to 123,45, not with dot ...
by Silvio.Falconi
Thu Jan 18, 2024 11:44 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: I'm not asking for the moon... Resolved!!
Replies: 24
Views: 2112

Re: Problem with tget numeric

Here i see 0.00 on the tget
But i asked another question
On the get the user must see nothing , the tget must be empty and the user can digit a number until two decimals
by Silvio.Falconi
Tue Jan 16, 2024 4:23 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with tget numeric
Replies: 16
Views: 1413

Re: xBrowse footer picture

I found the cause of more than 2 decimals in the footer sum.. My column value was computed by multiplying a numeric value by a val( alltrim( cValue ) ) . The xBrowse column was showing correct values with 2 decimals according to the column ...
by Detlef
Mon Apr 03, 2023 2:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse footer picture
Replies: 11
Views: 724

xBrowse footer picture

... ||{ CLR_MAGENTA, } }      :MakeTotals()   END  Result: https://www.hamelau.eu/tmp/footer.jpg There are 4 decimals instead of only 2 and a decimal dot instead of comma. What can i do to display the sums according the picture clause? Regards, Detlef
by Detlef
Mon Apr 03, 2023 10:27 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse footer picture
Replies: 11
Views: 724

Re: Raiz Cuadrada

SET DECIMALS, Exp(), Log(), Sqrt(), Val(), Set()

Code: Select all  Expand view

   SET DECIMAL TO 5
    ? Sqrt( 632512.62541 )
    ? Sqrt( 845414111.91440 )
 


Saludos.
by karinha
Mon Jan 24, 2022 6:32 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Raiz Cuadrada
Replies: 3
Views: 402

Re: Fields packed in text file

Miguel,

Please provide us a Comp-3 (Packed Decimals) file example to analyze it
by Antonio Linares
Mon Oct 11, 2021 5:03 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Fields packed in text file
Replies: 3
Views: 461

Re: Campos empaquetados en archivo de texto

Puedes proporcionar un fichero de ejemplo empaquetado con Comp-3 (Packed Decimals) ?
by Antonio Linares
Mon Oct 11, 2021 5:02 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Campos empaquetados en archivo de texto
Replies: 47
Views: 3006

Fields packed in text file

Hello everyone ... so long ... trying to get back in the ring. I hope you all are okay. I need help reading packed fields (Comp-3 (Packed Decimals)) in a text file coming from a mainframe. I have tried full-featured in Harbor and FiveWin and to no avail. Could someone guide me how to achieve ...
by El Loco
Sun Oct 10, 2021 10:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Fields packed in text file
Replies: 3
Views: 461

Campos empaquetados en archivo de texto

Hola a todos... tanto tiempo...tratando de volver al ruedo. Espero que estén muy bien. Necesito ayuda para leer campos empaquetados (Comp-3 (Packed Decimals)) en un archivo de texto proveniente de un mainframe. He probado con todas las funciones en Harbour y FiveWin y sin ningún resultado. Alguien ...
by El Loco
Sun Oct 10, 2021 10:01 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Campos empaquetados en archivo de texto
Replies: 47
Views: 3006

Re: Decimal detection

... Digits between five to nine (inclusive) are rounded up. Digits below five are rounded down. The display of the return value does not obey the DECIMALS setting unless SET FIXED is ON. With SET FIXED OFF, the display of the return value contains as many decimal digits as you specify for <nDecimals>, ...
by James Bott
Sat Oct 09, 2021 7:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Decimal detection
Replies: 10
Views: 1162

Decimal detection

... values from a database to a text file for export use. Normaly a use str() to convert the value. The problem is that if the field is define with 5 Decimals, and the value is 4.204, the export is 4.20400. Then I can use something like str(10,3). Is there a easy way to know the amount of decimals ...
by Marc Vanzegbroeck
Mon Sep 27, 2021 1:22 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Decimal detection
Replies: 10
Views: 1162

Re: ascan y tuplas

Prueba a usar: SET EXACT ON y SET DECIMALS TO ... también Y para salir de dudas: x := AScan( ::aTree, { | a | MsgInfo( a[ 5 ], oItem:cargo[ "hitem" ] ), .F. } ) asegurate visualmente que tienes los datos que crees tener :-) https://drive.google.com/file/d/14baPwYLoK8De8CmGWw-z7Li4LzehZcfX/view?usp=sharing
by goosfancito
Thu Jun 24, 2021 11:37 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ascan y tuplas
Replies: 8
Views: 697

Re: ascan y tuplas

Prueba a usar:

SET EXACT ON
y SET DECIMALS TO ... también

Y para salir de dudas:

x := AScan( ::aTree, { | a | MsgInfo( a[ 5 ], oItem:cargo[ "hitem" ] ), .F. } )

asegurate visualmente que tienes los datos que crees tener :-)
by Antonio Linares
Thu Jun 24, 2021 4:57 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ascan y tuplas
Replies: 8
Views: 697

Re: ¿Error de Tdolphin con decimales MySql?

... ¿cómo están? César, yo tampoco lo sabia, me costó 3 dias averiguarlo, :lol: Cristóbal, si, por supuesto, tengo en el main.prg Set Fixed On Set Decimals to 8 Hice todas las pruebas que pude, ya que pensaba que era problema de la tDolhin que no me regresaba los valores correctos. Cuando se me ...
by JoseAlvarez
Tue Jun 08, 2021 1:42 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ¿Error de Tdolphin con decimales MySql?
Replies: 8
Views: 996
Next

Return to advanced search