Posts by felipekm • 151 points
3 posts
-
1
votes1
answer180
viewsA: Doubt on function . length
Why don’t you do it? function insert_info(){ w_qtde_info = document.forms['my_form'].blc_info.length || []; } With this if your query returns Undefined you will not break a query on…
-
1
votes1
answer332
viewsA: Meaning of part of the Javascript code
$& reference to function String.replace() javascript. It simply means that replace should be done throughout the current text. Here’s a simple example using $&: if (typeof…
-
2
votes2
answers1259
viewsA: Difference in performance and use situation of numerical types
Basically accuracy is the big difference between them: Float: 7 digits (32 bit) Double: 15-16 digits (64 bit) Decimal: 28-29 Digits (128 bit) Decimal (decimal) is much more accurate than any other,…