Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatfloat question

Status
Not open for further replies.

8970

Programmer
Jun 14, 2001
4
BE
Hi,

Can I use Formatfloat('0,00',temp) instead of Formatfloat('0.00',temp)?

in the last case i always seem to get an invalid floating point error.

thanks
 
Your getting an invalid floating point error because floating point integers have to be whole numbers. You cannot have 2.5 as a floating point but you could have 2 or 3. Personally I use Variant variables instead of integers as they are a lot more versatile.
 
ok thanks for the tip, i think i just may be able to figure it out now
 
Hi,

I'm having trouble formatting a float the right way

it looks like this : 2.25

and it should look like this : 2,25

Can anyone show me how to pull this of?

thanks
 
I think you'll have to adjust the decimal symbol in Regional settings in Configuration panel. Change it from . in , and you can format your numbers the float with a comma.

Herman :-Q
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top