Numeric value to double

Numeric value to double

Postby Klaas den Dekker » Fri Jan 16, 2015 7:06 pm

Is there a way to convert a standard numeric value to a floating point (double) value in xHarbour?

Best regards,
Klaas den Dekker
Klaas den Dekker
 
Posts: 23
Joined: Sat Oct 22, 2005 8:22 pm

Re: Numeric value to double

Postby Antonio Linares » Fri Jan 16, 2015 7:26 pm

Klaas,

This should be enough:

local n := 10

MsgInfo( n * 1.0 )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41366
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Numeric value to double

Postby Klaas den Dekker » Sat Jan 17, 2015 10:43 am

Thx Antonio, works great!
Klaas den Dekker
 
Posts: 23
Joined: Sat Oct 22, 2005 8:22 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 64 guests