Forum Discussion
HHDXB
Jul 12, 2021Copper Contributor
US treasury price conversion eg 123'18.5 to 123.536
Hi Friends I look forward to your email / help Thanks
- Jul 12, 2021Thank you all for your time and input.
Hans Vogelaar : your setout with reverse calculation was a winner ..... I tested all 100% ..... excellent
Sergei Baklan : your set out to part of the question ... again worked well ... thank you
HansVogelaar
Jul 12, 2021MVP
With 133'18.5 in F3, the formula to convert it to a regular number is
=LEFT(F3,FIND("'",F3)-1)+MID(F3,FIND("'",F3)+1,10)/32
With 133.56 in L3, the formula to convert it to US Treasury notation is
=INT(L3)&"'"&MROUND(MOD(L3,1)*32,0.5)
SergeiBaklan
Jul 12, 2021Diamond Contributor
Also not correct. If without rounding it returns 123.5645, but it shall be
Price conversion between fractional and decimal notation (iotafinance.com)
- HansVogelaarJul 12, 2021MVP
0.5625 corresponds to 18/32, so it ignores the .5 at the end...
- SergeiBaklanJul 12, 2021Diamond Contributor
You are right. Strange, why do we need it if so?
Too complex for me Microsoft Word - Treasury Futures Price Rounding Conventions _March 2010.docx (cmegroup.com)
- HansVogelaarJul 12, 2021MVP
I think the OP will have to tell us what they really need.