what will be the type for salary field? should i use decimal or integer? please let me know which is the appropriate one.

what will be the type for salary field? should i use decimal or integer? please let me know which is the appropriate one.

float or double

consider i have two textbox for salary field one box before the decimal point and the second after the decimal

<td align="right"><span class="text">Total</span></td>
<td><input name="textfield" type="text" class="typeforms" value="0" size="10">
.
<input name="textfield" type="text" class="typeforms" value="00" size="2"> </td>

how can i retreive the values and use for the calculation?

Why can't you have one textbox and store decimal values in it ? :-/

Why can't you have one textbox and store decimal values in it ? :-/

Because he might be afraid of the floating point ?! :D

as for field type ... float, double, decimal (not integer).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.