编辑下列短文，使其更加流畅且易于理解：


Although I really wanted to go to the beach with my friends, I decided to stay home and study for my math test because I knew it was important. I had to make this choice because I value hard work and discipline, and I know that if I want to succeed in life, I have to make sacrifices sometimes.
Despite my strong desire to join my friends at the beach, I chose to stay home and devote my time to studying for my math test. This decision was based on my commitment to hard work and self-discipline, as I recognize the significance of making sacrifices to achieve success in life.