Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Type one number, saved completely different
Message
From
31/12/2015 05:57:17
 
General information
Forum:
Javascript
Category:
Other
Miscellaneous
Thread ID:
01629485
Message ID:
01629491
Views:
30
learn the IT magic numbers! (type?)casting to a 4 byte int somewhere between user input and server somewhere...

>Hi everybody,
>
>I'm typing (to test) this number 9911111111. I then press Save button and get 1321176519 instead. The numbers are defined as integer in the database.
>
>The markup (I believe wrong) is the following:
>
>
> <div class="col-md-8">
>                <input type="number" 
>                       name="binNo" 
>                       id="binNo" 
>                       ng-model="currentSites.binNo" 
>                       class="form-control"
>                       placeholder="@Labels.binNo" 
>                       ng-maxlength="10"
>                       data-sm:number-format 
>                       data-sm:number />
>            </div>
>
>Thanks in advance.
Previous
Reply
Map
View

Click here to load this message in the networking platform