Questions tagged as 'number-format'

6
answers

How to limit an input of type Number to only 3 characters?

I'm having a problem with a variable of type integer , because maxlength="" works only with string and needs to be barred, but it's type Number . I think you need the javascript, if anyone knows the solution would appre...
asked by 23.03.2017 / 15:07
3
answers

Format output type double with dot instead of comma

I have a collection of coordinates to popular repeater, with city name, latitude and longitude. .aspx <form id="form1" runat="server"> <div id="repetidor"> var markers = [ <asp:Repeater ID="rptMar...
asked by 22.09.2016 / 18:37
1
answer

Decimal places c #

I have a variable of decimal type returning me the value 270.61864847349717630804948048 how do I return with only 3 houses after the comma, in case I pass 270.618 only. Thank you in advance     
asked by 12.04.2018 / 20:41
1
answer

Error in the monetary mask, saved with the correct digits but at the time of display are missing 2 digits

Colleagues!WhenIsavetheproductitgetsthecorrectdigitsasinthescreenabove.However,whenIentertheproductlistandclickontheScissorsproductitopensintheregistrationscreenwithtwodigitsmissingasinthescreenbelow.Anyonehaveanysuggestions?Iasktobeasspecifica...
asked by 09.01.2016 / 16:53
1
answer

Format the value of the ComboBox pulled from the SQL database (LINQ) in Project C # (WPF)

I need a help in the code below ... I need to get the SQL database float value to be in the Brazilian Real Number Set format in a C # (WPF) project in a ComboBox (such as Double). That is, bring it as String in the IntemsSource and not be in thi...
asked by 25.03.2016 / 14:10
2
answers

Divide values in Brazilian currency (R $) in php?

I need to divide the value 6999.99 by 3, but when dividing it returns 2333.00 or does not return the cents, a hypothetical example follows: $parcelas = 3; $valor = double(6.999,99); //já usei com e sem double e na mesma $valorTotal = number_fo...
asked by 16.01.2017 / 19:05
2
answers

Incompatibility between maskmoney and number_format

I have a form field in which I am using maskmoney , but when the number entered enters the thousand, number_format returns only the first four decimal places. Calling maskmoney : $(function(){ $("#Cultsal").maskMo...
asked by 15.04.2015 / 18:09
0
answers

How to display the value of 8.0E-5 with php

Oops, does anyone know how to convert this 8.0E-5 value to its original value?     
asked by 22.03.2018 / 11:57
1
answer

how to add a semicolon in Animated number that activates with scrolling in javascript

I am a layperson in javascript . My boss dreams of putting such a "timer" on the site (animated numbers that trigger a machine-like movement by counting the numbers, which activate when you reach the window through the scroll). But I can...
asked by 24.09.2018 / 18:15
2
answers

Error converting String to Numbers in Java

In my last post ( do / while double-repeat the expression ) had an overlapping input problem using the Scanner class, and according to the links placed in the response, we can not use nextLine () after nextInt (). Now I'm doing another algori...
asked by 18.01.2018 / 00:19