Need help on how to convert float values to integer with this coding

#include "CurieIMU.h"

void setup() {
Serial.begin(9600); // initialize Serial communication
while (!Serial); // wait for the serial port to open

// initialize device
Serial.println("Initializing IMU device...");

// Set the accelerometer range to 250 degrees/second

void loop() {
float gx, gy, gz; //scaled Gyro values

CurieIMU.readGyroScaled(gx, gy, gz);

//display tab-separated gyro x/y/z values
Serial.print (gx);


  int g = gx;

Thanks for the help jremington. But this is what i get:

warning: 'gx' is used uninitialized in this function [-Wuninitialized]

g = gx;

Well, you do have to put that line AFTER the variable gx has been assigned a value.

What do you really want to do? If you just need the integer value of gx, ignore the numbers that come after the decimal point when you print it. Or change the print statement to:

Serial.print ((int) gx);

I need that int value to make a bit shifting to another software called bridge control panel (bcp). So that bcp can receive the arduino sketch that i did and display a graph while im moving the gyro inside the arduino board. Currently the sketch that i did can only display on serial monitor in arduino when i move the board.

Why on earth does that stupid software expect integer values?