diff --git a/Source/StringBuilderHelper.cs b/Source/StringBuilderHelper.cs
index e3242d7..df484d7 100644
--- a/Source/StringBuilderHelper.cs
+++ b/Source/StringBuilderHelper.cs
@@ -291,8 +291,13 @@ namespace Nuclex.Support {
/// String builder the number will be appended to
/// Remaining digits that will be recursively processed
private static void recursiveAppend(StringBuilder builder, int remaining) {
+#if XBOX
+ int digit = remaining % 10;
+ int tenth = remaining / 10;
+#else
int digit;
int tenth = Math.DivRem(remaining, 10, out digit);
+#endif
if(tenth > 0) {
recursiveAppend(builder, tenth);
@@ -305,8 +310,13 @@ namespace Nuclex.Support {
/// String builder the number will be appended to
/// Remaining digits that will be recursively processed
private static void recursiveAppend(StringBuilder builder, long remaining) {
+#if XBOX
+ long digit = remaining % 10;
+ long tenth = remaining / 10;
+#else
long digit;
long tenth = Math.DivRem(remaining, 10, out digit);
+#endif
if(tenth > 0) {
recursiveAppend(builder, tenth);