DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR C
Convert a Floating-point value to an Integer in C
float my_float = 42.8f; int my_int; my_int = (int)my_float; // => my_int=42
PREVIOUS
NEXT
Tagged:
#Convert
#Integer
#C
ADD COMMENT
Topic
COMMENT
Name
6+2 =
Submit