Questions tagged as 'decimal'

2
answers

Root with BigDecimal

I'm breaking my head to turn a root into a code. I know it works something like this: Math.pow(625, (1.0/4)) = raiz 4ª de 625 = 5 My headache is that my data is BigDecimal s Sting prazoIn = idtText.getText(); BigDecimal prazo...
asked by 02.11.2017 / 02:32
2
answers

how do I remove some numbers after the comma in PHP

How do I remove some numbers after the comma in PHP? ex: 25.52382832732732 ...  so I want it to stay only 25.52     
asked by 01.07.2017 / 23:25
1
answer

How to treat a decimal field with no boxes after the comma in a jquery mask mvc c #

I have a model with the following definition: [Display(Name = "Quantidade / Volume:")] public Int32 RoQuantidade { set; get; } In my View to fill in the data when empty, that is, that have not yet been written, using maskMoney work...
asked by 08.04.2016 / 19:19
2
answers

Converting a variable with replace to decimal

I am having a small question, I pass a 0,05 decimal value to a A variable of type string . After this variable receives this value, it converts , to point . , which is 0.05 After I do this replace, I co...
asked by 04.01.2016 / 18:58
1
answer

Code that leverages decimal value in C # for Java / Android

I have a code that rounds a value of type decimal to homes I want, and I would like to implement it in Android in Java but I'm having some difficulties, here's the code below in C #. public static class Valor { public static decimal...
asked by 16.12.2015 / 18:37
1
answer

How to convert a Decimal value to Datetime?

Can anyone help me with the following question? I have two return variables. Examples: 1st - type decimal ( vdecTotalHoras ) and a 2nd - also of type decimal ( vdecMediaAnalise ), both return date and time valu...
asked by 04.08.2015 / 17:24
2
answers

Decimal to binary conversion in C language

The code below, from the original ( link ) "prints" a decimal number between 0 and 255 in binary. #include <stdio.h> #include <stdlib.h> int main() { int n; // Número de entrada int r; // Resultado do deslocamento int i; // C...
asked by 28.06.2017 / 05:03
1
answer

How to convert 39 hours to type 'TIME'

To accomplish a certain task, I count the amount of time I spend on the task in my system. Today I came across the following: Data Inicial: 17/12/2018 16:49:14 Data Final: 19/12/2018 08:02:58 totalizando: 2362,29 minutos. Converto para d...
asked by 19.12.2018 / 11:43
3
answers

Format decimal places in PHP using semicolon [duplicate]

I have a payment module where I must pass the data without decimals, only number. Examples:    10,00 = 1000       100,30 = 10030       1.000,00 = 100000 I searched for some function in% with...
asked by 16.11.2016 / 13:17
1
answer

Decimal in field number (html).

How to put decimal (1.0 and 1.10) in step="0.010" of a field type = number? I have already tried to do but always the zeros are left out, it is not possible to make a 1.60 height eg result is always 1.6.     
asked by 07.11.2017 / 23:16