Difficuly getting difference of MPU6050 values over time

Alright so I did some reading over and I edited like one line of code from jremington. What I noticed is that removing the part with "1000000.0f" allows me to print my data, and it seems a bit iffy (because when I take raw values the differences are no greater than 0.01 due to filtering, among other things). It pretty much ruins the purpose of taking the change of the acceleration values if it's printing something like 0.3 differences.

Might it be that the decimals are shifted or something?

Here's what I used that "works"

/*............................................*/

unsigned long prevtime = 0;
int sampletime = 50;

long accel_getDelta(){
  static long x1=0, y1=0, z1=0;
  unsigned long currenttime = micros();//1000000.0f;
  float deltat = (currenttime - prevtime);

  if (deltat > sampletime){
    prevtime = currenttime;
    
    Serial.print(realaccx - x1); Serial.print("\t ");  
    Serial.print(realaccy - y1); Serial.print("\t ");
    Serial.print(realaccz - z1); Serial.print("\t ");
    Serial.println(currenttime); Serial.print("\t ");
    Serial.println(" ");

    x1 = realaccx;
    y1 = realaccy;
    z1 = realaccz;
  }
}