FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour lIsInt()
Posts: 1445
Joined: Mon Oct 10, 2005 02:38 PM
lIsInt()
Posted: Sun Dec 08, 2024 01:32 PM

Hola a todos,

Existe una función que me diga que una cifra es un número entero?

Algo así como lIsInt( nmiNumerito )

Muchas gracias,

Un Saludo

Carlos G.



FiveWin 25.12 + Harbour 3.2.0dev (r2502110321), BCC 7.7 Windows 11 Home

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: lIsInt()
Posted: Sun Dec 08, 2024 01:46 PM
Carlos,
Code (fw): Select all Collapse
function lIsInt( n )

return n == Int( n )
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1445
Joined: Mon Oct 10, 2005 02:38 PM
Re: lIsInt()
Posted: Sun Dec 08, 2024 01:58 PM
Antonio Linares wrote:Carlos,
Code (fw): Select all Collapse
function lIsInt( n )

return n == Int( n )
Perfecto,

Muchas gracias,

Un Saludo

Carlos G.



FiveWin 25.12 + Harbour 3.2.0dev (r2502110321), BCC 7.7 Windows 11 Home

Continue the discussion