Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

sqlite troubles

$
0
0

hi im little stucked with a script in db where i select a number:

SELECT ('%.2f', FPRE_VALOR) as value
FROM FIJACION_PRECIO"+
 WHERE FPRE_ID ="+id
this fuction is like toFixed() in javascript for format a number in 2 decimals example: http://stackoverflow.com/questions/9149063/sqlite-format-number-with-2-decimal-places-always but its not working i've been tried also with:
SELECT printf('%.2f', FPRE_VALOR) as value
FROM FIJACION_PRECIO"+
 WHERE FPRE_ID ="+id
but throws me next error that printf dont exist like a function

Viewing all articles
Browse latest Browse all 8068

Trending Articles