# How to make sure the datatype is float in asp?

**URL:** <https://forum.kirupa.com/t/how-to-make-sure-the-datatype-is-float-in-asp/95986>\
**Category:** Uncategorized\
**Created:** [December 3, 2003, 11:22am UTC](https://forum.kirupa.com/t/how-to-make-sure-the-datatype-is-float-in-asp/95986 "2003-12-03T11:22:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SBUH](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@SBUH](https://forum.kirupa.com/u/SBUH)\
**Post date:** [December 3, 2003, 11:22am UTC](https://forum.kirupa.com/t/how-to-make-sure-the-datatype-is-float-in-asp/95986/1 "2003-12-03T11:22:17Z")

</div>

Hello, I have the sequence of flash to asp to database. And I can get the values from flash in asp by using request.form …

and saving to database by the coding

conn.Execute “INSERT INTO TF\_pic VALUES(’”&idnumber&"’,’"&galleryF&"’,’"&frontgalleryx&"’,’"&frontgalleryy&"’,’"&frontrotationgl&"’,’"&galleryFx&"’,’"&galleryFy&"’)"

But when I save those datas to database, there is error like  
Type mismatch: ‘[string: “259.409865642173”]’

It refers to the galleryFx variable. Does it mean that the database recognised the value as string but not the float value as I expected.

I defined the datatype for the galleryFx as float datatype, then how can I make sure that the data are really saved as float by making sure the &galleryFx& is really a float value?

Thanks a lot in advance!
