I serialize/deserialize object which contains double values using \[code\]XmlSerializer\[/code\] and \[code\]StreamWriter\[/code\]. In generated \[code\].xml\[/code\] file I find that double value stored as decimal value. I wounder is there some way to generate double in hexadecimal form instead decimal? Some code. class to serialize \[code\][Serializable()] public class Variable{ public int shift; public int size; public int min; public int max; public string name; public string del; public Variable() { shift = 26; size = 0; min = 0; max = 0; name = "noname"; del = "-"; }}\[/code\]serializator class \[code\]/// <summary>/// class to serialize/deserialize another class/// </summary>public class serializator{ private serializator() { } /// <summary> /// serializator /// </summary> /// <param name="fname">filename to serialize</param> /// <param name="z">object to serialize</param> static public void ser(string fname, object z) { System.Type st = z.GetType(); XmlSerializer xSer = new XmlSerializer(st); StreamWriter sWri = new StreamWriter(fname); xSer.Serialize(sWri, z); sWri.Close(); } /// <summary> /// deserializator /// usage: fooclass fc = (fooclass)serializator.dser("fname.xml", fc); /// </summary> /// <param name="fname">filename to dser</param> /// <param name="z">object to grab type</param> /// <returns></returns> static public object dser(string fname, object z) { if (fname != null && fname != "" && z != null) { try { object rez = new object(); XmlSerializer xSer = new XmlSerializer(z.GetType()); StreamReader sRea = new StreamReader(fname); rez = xSer.Deserialize(sRea); sRea.Close(); return rez; } catch(Exception e) { System.Windows.Forms.MessageBox.Show("config ouch\r\n"+e.Message); return null; } } else { return null; } }}\[/code\]piece of code from main program \[code\]Variable v = new Variable();serializator.ser("foo.xml", v); \[/code\]resulting xml file \[code\]<?xml version="1.0" encoding="utf-8"?> <Variable> <shift>26</shift> <size>0</size> <min>0</min> <max>0</max> <name>noname</name> <del>-</del> </Variable> \[/code\]In this particular case I want to see \[code\]<shift>1A</shift>\[/code\] or \[code\]<shift>0x1A</shift>\[/code\] instead \[code\]<shift>26</shift>\[/code\]. Is is possible?