Questions tagged as 'number-format'

0
answers

Javascript - Filling in Textbox with numbers, strings and dates in a ticket

I'm trying to make a ticket fill automatically when selecting a row from a table. In this case, there are textboxes (or type inputs) that must be filled with some values. My role is function verBoleto(nossonumero,valor,dataemissao,datavencimen...
asked by 18.06.2015 / 17:35
1
answer

Parameter error

function tr_rating_format_number($id = NULL, $display = NULL) { $return = number_format(get_post_meta($id, 'ratings_average', true), 1); $return = get_post_meta($id, 'ratings_average', true) == '' ? '0.0' : $return; if( $display == TRUE ) { ech...
asked by 13.04.2018 / 03:10
1
answer

Format number from 3200 to 3,200 with PHP [duplicate]

I have to transform values like: 3200 5000 10000 13000 100000 in 3.200 5.000 10.000 13.00 100.000 I tried to use the number_format function of PHP but could not do it correctly. How can I resolve this problem?     
asked by 21.08.2016 / 00:04
1
answer

Format numeric latitude and longitude in Javascript

I need to put the number of decimals in my latitude and longitude; they currently look like this: -50850080, -29361808 And I would like it to look like this: -50.850080, -29.361808 It just had to be something valid, as it might happen...
asked by 22.08.2016 / 05:50
1
answer

Turn 2600 into 26.00 in PHP? [closed]

I will have values like 2600 or 15000 and need to be set as 26.00, 150.00, etc. How can I do this in PHP? With the number_format function it puts it wrong (in my case) as 2600.00 or 15.000.00. How can I do it?     
asked by 04.01.2016 / 21:10