lIsInt()

lIsInt()

Postby FiveWiDi » Sun Dec 08, 2024 1: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 24.02 + Harbour 3.2.0dev (r2403071241), BCC 7.7 Windows 10
FiveWiDi
 
Posts: 1202
Joined: Mon Oct 10, 2005 2:38 pm

Re: lIsInt()

Postby Antonio Linares » Sun Dec 08, 2024 1:46 pm

Carlos,

Code: Select all  Expand view  RUN
function lIsInt( n )

return n == Int( n )
regards, saludos

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

Re: lIsInt()

Postby FiveWiDi » Sun Dec 08, 2024 1:58 pm

Antonio Linares wrote:Carlos,

Code: Select all  Expand view  RUN
function lIsInt( n )

return n == Int( n )


Perfecto,

Muchas gracias,
Un Saludo
Carlos G.

FiveWin 24.02 + Harbour 3.2.0dev (r2403071241), BCC 7.7 Windows 10
FiveWiDi
 
Posts: 1202
Joined: Mon Oct 10, 2005 2:38 pm


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 115 guests