Αναγνώριση τύπου μεταβλητής - Φωτόδεντρο

Ξεκίνησε από nikolasmer, 06 Απρ 2025, 08:46:10 ΜΜ

« προηγούμενο - επόμενο »

nikolasmer

Εδώ έχουμε ένα εργαλείο στο Φωτόδεντρο,  που αναγνωρίζει τον τύπο την τιμής που εισάγουμε. 
Βάζω σύγκριση σταθερών πχ 5>3 και μου το βγάζει χαρακτήρα. Έτσι έπρεπε να δουλεύει, έχει σφάλμα, πρέπει να βάζω μόνο Αληθής - Ψευδής; 


Υγ. Γιατί Φωτόδεντρο και όχι Φωτόδενδρο  :P  
Μερεντίτης Νικόλαος
Πληροφορικός

ikariofil


dpa2006

Επειδή δεν έχει δεκαδικό μέρος, την βγάζει ακέραια.
Τον 6.1 τον βγάζει πραγματικό.
Δεν λειτουργεί όπως η Python...
Computer science (abbreviated CS or CompSci) is the scientific and practical approach to computation and its applications. It is the systematic study of the feasibility, structure, expression, and mechanization of the methodical processes (or algorithms) that underlie the acquisition, representation, processing, storage, communication of, and access to information, whether such information is encoded in bits and bytes in a computer memory or transcribed engines and protein structures in a human cell.source:http://en.wikipedia.org/wiki/Computer_science