<?php
// Test script to check if GPA displays are consistent in marksheet
echo "Testing GPA consistency in marksheet...\n\n";

// Simulate the GPA calculation that should happen in marksheet
$gpa = 4.36;

// First display (in table)
echo "GPA in table: " . number_format($gpa, 2) . "\n";

// Simulate some other code that might modify variables (but shouldn't affect GPA)

// Second display (in info row)
$gpa_based_grade = 'A'; // This would be calculated from GPA
echo "Grade: $gpa_based_grade\n";
echo "GPA in info row: " . number_format($gpa, 2) . "\n";

echo "\nBoth should show the same value: 4.36\n";
?>
