Printing Out Floats Poorly
?
?

Keyboard Navigation

Global Keys

[, < / ], > Jump to previous / next episode
W, K, P / S, J, N Jump to previous / next timestamp
t / T Toggle theatre / SUPERtheatre mode
V Revert filter to original state Y Select link (requires manual Ctrl-c)

Menu toggling

q Quotes r References f Filter y Link c Credits

In-Menu and Index Controls

a
w
s
d
h j k l


Esc Close menu / unfocus timestamp

Quotes and References Menus and Index

Enter Jump to timestamp

Quotes, References and Credits Menus

o Open URL (in new tab)

Filter Menu

x, Space Toggle category and focus next
X, ShiftSpace Toggle category and focus previous
v Invert topics / media as per focus

Filter and Link Menus

z Toggle filter / linking mode

Credits Menu

Enter Open URL (in new tab)
0:28Recap and set the stage for the day
0:28Recap and set the stage for the day
0:28Recap and set the stage for the day
2:29Run the game and refamiliarise ourselves with the code
2:29Run the game and refamiliarise ourselves with the code
2:29Run the game and refamiliarise ourselves with the code
3:51handmade_shared.h: Fix an ArrayCount() call in FormatStringList()
3:51handmade_shared.h: Fix an ArrayCount() call in FormatStringList()
3:51handmade_shared.h: Fix an ArrayCount() call in FormatStringList()
5:37handmade_shared.h: Introduce F64ToASCII() and consider precision
5:37handmade_shared.h: Introduce F64ToASCII() and consider precision
5:37handmade_shared.h: Introduce F64ToASCII() and consider precision
8:47"I am not a floating point guru"α
8:47"I am not a floating point guru"α
8:47"I am not a floating point guru"α
9:06Blackboard: Float Printing
9:06Blackboard: Float Printing
9:06Blackboard: Float Printing
11:37Blackboard: The problematic concept of the decimal point
11:37Blackboard: The problematic concept of the decimal point
11:37Blackboard: The problematic concept of the decimal point
14:28Blackboard: Breaking this fractional problem down
14:28Blackboard: Breaking this fractional problem down
14:28Blackboard: Breaking this fractional problem down
15:25Internet: modf1
15:25Internet: modf1
15:25Internet: modf1
17:21Blackboard: Summing the fractional parts together
17:21Blackboard: Summing the fractional parts together
17:21Blackboard: Summing the fractional parts together
21:00handmade_shared.h: Implement F64ToASCII()
21:00handmade_shared.h: Implement F64ToASCII()
21:00handmade_shared.h: Implement F64ToASCII()
28:36Compile and run, see that our precision looks messed up and investigate why
28:36Compile and run, see that our precision looks messed up and investigate why
28:36Compile and run, see that our precision looks messed up and investigate why
29:45handmade_shared.h: Make FormatStringList() set Precision if not set, and bake the string reversal code in to U64ToASCII()
29:45handmade_shared.h: Make FormatStringList() set Precision if not set, and bake the string reversal code in to U64ToASCII()
29:45handmade_shared.h: Make FormatStringList() set Precision if not set, and bake the string reversal code in to U64ToASCII()
37:03Debugger: Step in to U64ToASCII() to take a look at what that does
37:03Debugger: Step in to U64ToASCII() to take a look at what that does
37:03Debugger: Step in to U64ToASCII() to take a look at what that does
41:03handmade_shared.h: Endeavour to handle precision correctly
41:03handmade_shared.h: Endeavour to handle precision correctly
41:03handmade_shared.h: Endeavour to handle precision correctly
42:31Internet: Consult the printf spec2
42:31Internet: Consult the printf spec2
42:31Internet: Consult the printf spec2
42:51"Chrome? Chrooooooome?"β
42:51"Chrome? Chrooooooome?"β
42:51"Chrome? Chrooooooome?"β
46:05handmade_shared.h: Make FormatStringList() handle the Width in accordance with the printf spec
46:05handmade_shared.h: Make FormatStringList() handle the Width in accordance with the printf spec
46:05handmade_shared.h: Make FormatStringList() handle the Width in accordance with the printf spec
47:18Run the game and see that the printouts are untouched
47:18Run the game and see that the printouts are untouched
47:18Run the game and see that the printouts are untouched
47:37handmade_shared.h: Make FormatStringList() correctly compute the Precision
47:37handmade_shared.h: Make FormatStringList() correctly compute the Precision
47:37handmade_shared.h: Make FormatStringList() correctly compute the Precision
49:23Run the game, see the floating point values looking better and consider what the Width specifier actually means
49:23Run the game, see the floating point values looking better and consider what the Width specifier actually means
49:23Run the game, see the floating point values looking better and consider what the Width specifier actually means
55:00Q&A
🗩
55:00Q&A
🗩
55:00Q&A
🗩
56:26zamar037 Does the float printout account for left or right alignment?
🗪
56:26zamar037 Does the float printout account for left or right alignment?
🗪
56:26zamar037 Does the float printout account for left or right alignment?
🗪
58:17sharlock93 Are we stuck on what something %3d means? I was away
🗪
58:17sharlock93 Are we stuck on what something %3d means? I was away
🗪
58:17sharlock93 Are we stuck on what something %3d means? I was away
🗪
59:17culver_fly Sorry if it sounds rude, but why do you even care about the specs? Why don't you just print whatever you want it to be? I mean, it's your code?
🗪
59:17culver_fly Sorry if it sounds rude, but why do you even care about the specs? Why don't you just print whatever you want it to be? I mean, it's your code?
🗪
59:17culver_fly Sorry if it sounds rude, but why do you even care about the specs? Why don't you just print whatever you want it to be? I mean, it's your code?
🗪
59:48handmade_shared.h: Deduplicate the float cases
59:48handmade_shared.h: Deduplicate the float cases
59:48handmade_shared.h: Deduplicate the float cases
1:01:01sharlock93 As far as I know %3.3f means 3 numbers before the decimal and precise to three decimal numbers
🗪
1:01:01sharlock93 As far as I know %3.3f means 3 numbers before the decimal and precise to three decimal numbers
🗪
1:01:01sharlock93 As far as I know %3.3f means 3 numbers before the decimal and precise to three decimal numbers
🗪
1:01:35mmozeiko Use the http://cppreference.com it has better docs than cplusplus.com, and cppreference states it's a minimum width
🗪
1:01:35mmozeiko Use the http://cppreference.com it has better docs than cplusplus.com, and cppreference states it's a minimum width
🗪
1:01:35mmozeiko Use the http://cppreference.com it has better docs than cplusplus.com, and cppreference states it's a minimum width
🗪
1:02:21sharlock93 Guess I have been wrong all this time
🗪
1:02:21sharlock93 Guess I have been wrong all this time
🗪
1:02:21sharlock93 Guess I have been wrong all this time
🗪
1:02:42insofaras Can you say something quotable for test purposes?
🗪
1:02:42insofaras Can you say something quotable for test purposes?
🗪
1:02:42insofaras Can you say something quotable for test purposes?
🗪
1:02:51"I feel like it's hard to say something quotable on demand"γ
1:02:51"I feel like it's hard to say something quotable on demand"γ
1:02:51"I feel like it's hard to say something quotable on demand"γ
1:03:123ygun Minimum width would make it more consistent across all types of printf
🗪
1:03:123ygun Minimum width would make it more consistent across all types of printf
🗪
1:03:123ygun Minimum width would make it more consistent across all types of printf
🗪
1:03:24programgamer So wait, is it a behavior problem or a bad spec problem?
🗪
1:03:24programgamer So wait, is it a behavior problem or a bad spec problem?
🗪
1:03:24programgamer So wait, is it a behavior problem or a bad spec problem?
🗪
1:04:04elxenoanizd Do you think it's worth implementing a custom string class that uses a custom heap for allocation and disposition of memory instead of dealing directly with null-terminated C-strings (talking mostly for tools programming)?
🗪
1:04:04elxenoanizd Do you think it's worth implementing a custom string class that uses a custom heap for allocation and disposition of memory instead of dealing directly with null-terminated C-strings (talking mostly for tools programming)?
🗪
1:04:04elxenoanizd Do you think it's worth implementing a custom string class that uses a custom heap for allocation and disposition of memory instead of dealing directly with null-terminated C-strings (talking mostly for tools programming)?
🗪
1:04:39sharlock93 Thanks for the stream, have a good evening, going to work, are you gonna stream at this time from now on?
🗪
1:04:39sharlock93 Thanks for the stream, have a good evening, going to work, are you gonna stream at this time from now on?
🗪
1:04:39sharlock93 Thanks for the stream, have a good evening, going to work, are you gonna stream at this time from now on?
🗪
1:05:24macielda Is text printing speed interfering with your profiling accuracy in a significant way?
🗪
1:05:24macielda Is text printing speed interfering with your profiling accuracy in a significant way?
🗪
1:05:24macielda Is text printing speed interfering with your profiling accuracy in a significant way?
🗪
1:05:56torgdor What advantages does this version of printf have over the standard library printf?
🗪
1:05:56torgdor What advantages does this version of printf have over the standard library printf?
🗪
1:05:56torgdor What advantages does this version of printf have over the standard library printf?
🗪
1:08:12longboolean Right now you are padding with zeros, "the spec", at least in one example, looks like it pads with spaces
🗪
1:08:12longboolean Right now you are padding with zeros, "the spec", at least in one example, looks like it pads with spaces
🗪
1:08:12longboolean Right now you are padding with zeros, "the spec", at least in one example, looks like it pads with spaces
🗪
1:08:33elxenoanizd When is the next Handmade Con?3
🗪
1:08:33elxenoanizd When is the next Handmade Con?3
🗪
1:08:33elxenoanizd When is the next Handmade Con?3
🗪
1:10:08music_guru What else is left other than printf that would need to be removed?
🗪
1:10:08music_guru What else is left other than printf that would need to be removed?
🗪
1:10:08music_guru What else is left other than printf that would need to be removed?
🗪
1:13:32longboolean Could you explain briefly why this simple approach of printing floats can lead to precision errors?
🗪
1:13:32longboolean Could you explain briefly why this simple approach of printing floats can lead to precision errors?
🗪
1:13:32longboolean Could you explain briefly why this simple approach of printing floats can lead to precision errors?
🗪
1:14:53zeanith64 Will everything be recorded at HandmadeCon? Considering what nearly happened last year, I'm a little worried
🗪
1:14:53zeanith64 Will everything be recorded at HandmadeCon? Considering what nearly happened last year, I'm a little worried
🗪
1:14:53zeanith64 Will everything be recorded at HandmadeCon? Considering what nearly happened last year, I'm a little worried
🗪
1:16:28Wrap it up
🗩
1:16:28Wrap it up
🗩
1:16:28Wrap it up
🗩