For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > November 2004 > [PHP-DB] number format









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author [PHP-DB] number format
Balwantsingh

2004-11-29, 3:59 pm

hello,

may pls. suggest me how i can retreive number before decimal and after
decimal.
for example 123456.7. I want to store 123456 in a variable and 7 in another.

also how can i force the user by validations so that he can only enter data
in this format only i.e. 123456.7.

thanks

with best wishes
balwant
Bastien Koert

2004-11-29, 3:59 pm

explode()

RTFm

bastien

>From: "balwantsingh" <balwantsingh@indoasian.com>
>Reply-To: <balwantsingh@indoasian.com>
>To: <php-db@lists.php.net>
>Subject: [PHP-DB] number format
>Date: Sat, 27 Nov 2004 18:07:27 +0530
>
>hello,
>
>may pls. suggest me how i can retreive number before decimal and after
>decimal.
>for example 123456.7. I want to store 123456 in a variable and 7 in
>another.
>
>also how can i force the user by validations so that he can only enter data
>in this format only i.e. 123456.7.
>
>thanks
>
>with best wishes
>balwant
>
>--
>PHP Database Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com